Struct quinn_proto::EndpointEvent [−][src]
pub struct EndpointEvent(_);
Events sent from a Connection to an Endpoint
Implementations
impl EndpointEvent[src]
impl EndpointEvent[src]pub fn drained() -> Self[src]
Construct an event that indicating that a Connection will no longer emit events
Useful for notifying an Endpoint that a Connection has been destroyed outside of the
usual state machine flow, e.g. when being dropped by the user.
pub fn is_drained(&self) -> bool[src]
Determine whether this is the last event a Connection will emit
Useful for determining when connection-related event loop state can be freed.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for EndpointEvent
impl RefUnwindSafe for EndpointEventimpl Send for EndpointEvent
impl Send for EndpointEventimpl Sync for EndpointEvent
impl Sync for EndpointEventimpl Unpin for EndpointEvent
impl Unpin for EndpointEventimpl UnwindSafe for EndpointEvent
impl UnwindSafe for EndpointEventBlanket Implementations
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,