pub enum EventKind {
Send,
Recv,
Connected,
Accept,
Closed,
StreamOpenBidi,
StreamOpenUni,
StreamAccept,
StreamSend,
StreamRecv,
ReadLock,
}Expand description
Type for readiness events.
Variants§
Send
Readiness for send operation.
Recv
Readiness for recv operation.
Connected
Client-side connection handshake is completed.
Accept
Server-side connection handshake is completed.
Closed
Connection is closed.
StreamOpenBidi
Readiness for stream_open operation.
StreamOpenUni
Readiness for stream_open operation.
StreamAccept
Readiness for new inbound stream.
StreamSend
Readiness for stream_send operation.
StreamRecv
Readiness for stream_recv operation.
ReadLock
Read lock.
Trait Implementations§
Source§impl Ord for EventKind
impl Ord for EventKind
Source§impl PartialOrd for EventKind
impl PartialOrd for EventKind
impl Copy for EventKind
impl Eq for EventKind
impl StructuralPartialEq for EventKind
Auto Trait Implementations§
impl Freeze for EventKind
impl RefUnwindSafe for EventKind
impl Send for EventKind
impl Sync for EventKind
impl Unpin for EventKind
impl UnwindSafe for EventKind
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more