pub struct BinaryMessage {
pub id: i64,
pub timestamp: u64,
pub data: BinaryData,
}
Expand description
A single binary message that could be sent in a binary websocket frame
Fields§
§id: i64
§timestamp: u64
§data: BinaryData
Implementations§
Source§impl BinaryMessage
impl BinaryMessage
Sourcepub fn from_reader<R: Read>(reader: &mut R) -> Result<Self, BinaryMessageError>
pub fn from_reader<R: Read>(reader: &mut R) -> Result<Self, BinaryMessageError>
Decode one entire message
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BinaryMessage
impl RefUnwindSafe for BinaryMessage
impl Send for BinaryMessage
impl Sync for BinaryMessage
impl Unpin for BinaryMessage
impl UnwindSafe for BinaryMessage
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