Enum stomp_parser::server::ServerFrame
source · pub enum ServerFrame {
Connected(ConnectedFrame),
Receipt(ReceiptFrame),
Error(ErrorFrame),
Message(MessageFrame),
}
Expand description
The ServerFrame
enum contains a variant for each frame that the server can send.
The try_from(bytes: Vec<u8>)
method, provided via an implementaton of TryFrom<Vec<u8>>
, is the recommended way to obtain a Frame from a received message.
Variants§
Trait Implementations§
source§impl Debug for ServerFrame
impl Debug for ServerFrame
source§impl Into<Vec<u8, Global>> for ServerFrame
impl Into<Vec<u8, Global>> for ServerFrame
This implementation serialises ServerFrame
into a byte array.
source§impl TryFrom<Vec<u8, Global>> for ServerFrame
impl TryFrom<Vec<u8, Global>> for ServerFrame
Parses a ServerFrame
from the data contained in the provided vector of bytes.
§type Error = StompParseError
type Error = StompParseError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl RefUnwindSafe for ServerFrame
impl Send for ServerFrame
impl Sync for ServerFrame
impl Unpin for ServerFrame
impl UnwindSafe for ServerFrame
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