Enum tokio_stomp_2::FromServer
source · pub enum FromServer {
Message {
destination: String,
message_id: String,
subscription: String,
headers: Vec<(String, String)>,
body: Option<Vec<u8>>,
},
Receipt {
receipt_id: String,
},
Error {
message: Option<String>,
body: Option<Vec<u8>>,
},
// some variants omitted
}
Expand description
A STOMP message sent from the server See the Spec for more information
Variants§
Message
Fields
Conveys messages from subscriptions to the client
Receipt
Sent from the server to the client once a server has successfully processed a client frame that requests a receipt
Error
Something went wrong. After sending an Error, the server will close the connection
Trait Implementations§
source§impl Clone for FromServer
impl Clone for FromServer
source§fn clone(&self) -> FromServer
fn clone(&self) -> FromServer
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for FromServer
impl Send for FromServer
impl Sync for FromServer
impl Unpin for FromServer
impl UnwindSafe for FromServer
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