pub enum ChannelEvent {
Opened {
channel: ChannelEventContext,
direction: ChannelDirection,
initial_credit: u32,
},
SendStarted {
channel: ChannelEventContext,
},
SendWaitingForCredit {
channel: ChannelEventContext,
},
SendFinished {
channel: ChannelEventContext,
outcome: ChannelSendOutcome,
elapsed: Duration,
},
TrySend {
channel: ChannelEventContext,
outcome: ChannelTrySendOutcome,
},
CreditGranted {
channel: ChannelEventContext,
amount: u32,
},
ItemReceived {
channel: ChannelEventContext,
},
ItemConsumed {
channel: ChannelEventContext,
},
Closed {
channel: ChannelEventContext,
reason: ChannelCloseReason,
},
Reset {
channel: ChannelEventContext,
reason: ChannelResetReason,
},
}Variants§
Opened
SendStarted
Fields
§
channel: ChannelEventContextSendWaitingForCredit
Fields
§
channel: ChannelEventContextSendFinished
TrySend
CreditGranted
ItemReceived
Fields
§
channel: ChannelEventContextItemConsumed
Fields
§
channel: ChannelEventContextClosed
Reset
Trait Implementations§
Source§impl Clone for ChannelEvent
impl Clone for ChannelEvent
Source§fn clone(&self) -> ChannelEvent
fn clone(&self) -> ChannelEvent
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 moreSource§impl Debug for ChannelEvent
impl Debug for ChannelEvent
Source§impl PartialEq for ChannelEvent
impl PartialEq for ChannelEvent
Source§fn eq(&self, other: &ChannelEvent) -> bool
fn eq(&self, other: &ChannelEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ChannelEvent
impl Eq for ChannelEvent
impl StructuralPartialEq for ChannelEvent
Auto Trait Implementations§
impl Freeze for ChannelEvent
impl RefUnwindSafe for ChannelEvent
impl Send for ChannelEvent
impl Sync for ChannelEvent
impl Unpin for ChannelEvent
impl UnsafeUnpin for ChannelEvent
impl UnwindSafe for ChannelEvent
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.