pub enum Kind {
Welcome,
Ping,
Disconnect,
Confirmation,
Rejection,
Message,
}Expand description
The type of a server-to-client frame.
Variants§
Welcome
The server finished setting the connection up and will act on commands from here.
Ping
The heartbeat, every three seconds.
Disconnect
The server is hanging up, and says whether to come back.
Confirmation
The channel accepted a subscription.
Rejection
The channel turned one down.
Message
Something a channel broadcast or transmitted.
Trait Implementations§
impl Copy for Kind
impl Eq for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnsafeUnpin for Kind
impl UnwindSafe for Kind
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