Struct sctp_proto::EndpointEvent
source · pub struct EndpointEvent(/* private fields */);
Expand description
Events sent from an Association to an Endpoint
Implementations§
source§impl EndpointEvent
impl EndpointEvent
sourcepub fn drained() -> Self
pub fn drained() -> Self
Construct an event that indicating that a Association
will no longer emit events
Useful for notifying an Endpoint
that a Association
has been destroyed outside of the
usual state machine flow, e.g. when being dropped by the user.
sourcepub fn is_drained(&self) -> bool
pub fn is_drained(&self) -> bool
Determine whether this is the last event a Association
will emit
Useful for determining when association-related event loop state can be freed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EndpointEvent
impl RefUnwindSafe for EndpointEvent
impl Send for EndpointEvent
impl Sync for EndpointEvent
impl Unpin for EndpointEvent
impl UnwindSafe for EndpointEvent
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