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
Conveys messages from subscriptions to the client
Fields
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 Freeze for FromServer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)