pub enum NetConnectionMessage {
Incoming(NetMessage),
Outgoing(NetWrite),
Shutdown,
}Expand description
Messages sent to a NetConnection actor from its reader thread (incoming
data / lifecycle) and from the server/bridge (outgoing writes).
Variants§
Incoming(NetMessage)
Incoming data from the wire (delivered by the reader thread).
Outgoing(NetWrite)
Outgoing write request (delivered by other actors via Runtime::send).
Shutdown
The runtime is shutting down — stop the writer thread.
Auto Trait Implementations§
impl Forget for NetConnectionMessage
impl Freeze for NetConnectionMessage
impl Move for NetConnectionMessage
impl RefUnwindSafe for NetConnectionMessage
impl Send for NetConnectionMessage
impl Sync for NetConnectionMessage
impl Unpin for NetConnectionMessage
impl UnsafeUnpin for NetConnectionMessage
impl UnwindSafe for NetConnectionMessage
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