pub struct Message { /* private fields */ }Expand description
Represents a raw protocol message with a type byte and a payload.
Implementations§
Trait Implementations§
Source§impl From<ServerMessage> for Message
impl From<ServerMessage> for Message
Source§fn from(server_message: ServerMessage) -> Message
fn from(server_message: ServerMessage) -> Message
Converts a ServerMessage enum into a raw Message suitable for
transmission.
Source§impl TryFrom<Message> for ClientMessage
impl TryFrom<Message> for ClientMessage
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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