pub struct MockSerializer { /* private fields */ }
Expand description
MockSerializer Computes the size of the serialized output without storing it
Implementations§
Trait Implementations§
Source§impl Serializer for MockSerializer
impl Serializer for MockSerializer
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 Freeze for MockSerializer
impl RefUnwindSafe for MockSerializer
impl Send for MockSerializer
impl Sync for MockSerializer
impl Unpin for MockSerializer
impl UnwindSafe for MockSerializer
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