pub struct SliceSerializer<'a> { /* private fields */ }
Expand description
Serialize a Packet to a mutable slice
Implementations§
Trait Implementations§
Source§impl<'a> Serializer for SliceSerializer<'a>
impl<'a> Serializer for SliceSerializer<'a>
type Marker = (usize, usize)
fn context(&self) -> ProtocolContext
fn direction(&self) -> CommandDirection
fn write_bytes(&mut self, fragment: &[u8]) -> SerializeResult
fn write_marker( &mut self, length: usize, ) -> Result<Self::Marker, SerializeError>
fn set_marker( &mut self, marker: Self::Marker, fragment: &[u8], ) -> SerializeResult
fn marker_distance(&self, marker: &Self::Marker) -> usize
fn write<F>(&mut self, length: usize, f: F) -> SerializeResult
Auto Trait Implementations§
impl<'a> Freeze for SliceSerializer<'a>
impl<'a> RefUnwindSafe for SliceSerializer<'a>
impl<'a> Send for SliceSerializer<'a>
impl<'a> Sync for SliceSerializer<'a>
impl<'a> Unpin for SliceSerializer<'a>
impl<'a> !UnwindSafe for SliceSerializer<'a>
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