pub struct StreamFinal {
pub stream_id: u64,
pub final_offset: u64,
}
Expand description
stream final offset
Fields§
§stream_id: u64
stream identifier
final_offset: u64
final byte
Trait Implementations§
Source§impl Serialize for StreamFinal
impl Serialize for StreamFinal
Source§fn serialized_length(&self) -> usize
fn serialized_length(&self) -> usize
determine serialized length of frame
Source§fn read(buf: &[u8]) -> Result<(usize, Self), ()>
fn read(buf: &[u8]) -> Result<(usize, Self), ()>
read frame from buffer, returning frame and serialized length
Source§fn has_end_optimization() -> boolwhere
Self: Sized,
fn has_end_optimization() -> boolwhere
Self: Sized,
whether the frame has special “serialize to end” behavior
Source§impl SerializeToEnd for StreamFinal
impl SerializeToEnd for StreamFinal
Source§fn serialized_length_at_end(&self) -> usize
fn serialized_length_at_end(&self) -> usize
determine serialized length of frame at the end of the packet
Source§fn write_to_end(&self, buf: &mut [u8]) -> usize
fn write_to_end(&self, buf: &mut [u8]) -> usize
write last frame of packet to buffer, returning serialized length
Source§fn read_to_end(buf: &[u8]) -> Result<Self, ()>where
Self: Sized,
fn read_to_end(buf: &[u8]) -> Result<Self, ()>where
Self: Sized,
read last frame of packet from buffer, returning frame
Source§fn has_end_optimization() -> boolwhere
Self: Sized,
fn has_end_optimization() -> boolwhere
Self: Sized,
whether the frame has special “serialize to end” behavior
Auto Trait Implementations§
impl Freeze for StreamFinal
impl RefUnwindSafe for StreamFinal
impl Send for StreamFinal
impl Sync for StreamFinal
impl Unpin for StreamFinal
impl UnwindSafe for StreamFinal
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