#[repr(C)]pub struct sock_event_t {
pub super_: event_t,
pub cb: sock_event_cb_t,
pub sock: *mut c_void,
pub cb_arg: *mut c_void,
pub type_: sock_async_flags_t,
}
Expand description
@brief Event definition for context scope
Fields§
§super_: event_t
< event structure that gets extended
cb: sock_event_cb_t
< callback
sock: *mut c_void
< generic pointer to a @ref net_sock object
cb_arg: *mut c_void
< callback argument
type_: sock_async_flags_t
< types of the event
Trait Implementations§
source§impl Clone for sock_event_t
impl Clone for sock_event_t
source§fn clone(&self) -> sock_event_t
fn clone(&self) -> sock_event_t
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for sock_event_t
impl Debug for sock_event_t
source§impl Default for sock_event_t
impl Default for sock_event_t
impl Copy for sock_event_t
Auto Trait Implementations§
impl Freeze for sock_event_t
impl RefUnwindSafe for sock_event_t
impl !Send for sock_event_t
impl !Sync for sock_event_t
impl Unpin for sock_event_t
impl UnwindSafe for sock_event_t
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes