pub struct EventEmpty { /* private fields */ }Expand description
No-payload marker for events that carry none (e.g. session_shutdown).
Carries a dummy byte so the empty-struct isn’t flagged FFI-unsafe by
improper_ctypes (zero-sized C structs are rejected regardless of repr(C)).
Implementations§
Source§impl EventEmpty
impl EventEmpty
Sourcepub const INSTANCE: EventEmpty
pub const INSTANCE: EventEmpty
The one no-payload instance.
Trait Implementations§
Source§impl Clone for EventEmpty
impl Clone for EventEmpty
Source§fn clone(&self) -> EventEmpty
fn clone(&self) -> EventEmpty
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EventEmpty
Auto Trait Implementations§
impl Freeze for EventEmpty
impl RefUnwindSafe for EventEmpty
impl Send for EventEmpty
impl Sync for EventEmpty
impl Unpin for EventEmpty
impl UnsafeUnpin for EventEmpty
impl UnwindSafe for EventEmpty
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