pub struct Message {
pub offset: Offset,
pub data: Bytes,
pub byte_len: u64,
}Expand description
A message in a stream
Fields§
§offset: OffsetMessage offset (unique identifier within stream)
data: BytesMessage data
byte_len: u64Byte length (for memory tracking)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnsafeUnpin for Message
impl UnwindSafe for Message
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