pub enum ReadData<T> {
Binary(Bytes),
Custom(T),
}Expand description
Data coming down the line from the transport layer. When the transport layer is
e.g. WebSocket, custom data such as Ping/Pong can be handled separately from STOMP data
by using the Custom variant.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for ReadData<T>
impl<T> RefUnwindSafe for ReadData<T>where
T: RefUnwindSafe,
impl<T> Send for ReadData<T>where
T: Send,
impl<T> Sync for ReadData<T>where
T: Sync,
impl<T> Unpin for ReadData<T>where
T: Unpin,
impl<T> UnsafeUnpin for ReadData<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ReadData<T>where
T: UnwindSafe,
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