pub struct U64FrameDeserializer {}Expand description
A zero-copy binary DeserializeFrame implementation that utilizes a little-endian u64 length at the beginning of the data.
Implementations§
Trait Implementations§
Source§impl DeserializeFrame for U64FrameDeserializer
impl DeserializeFrame for U64FrameDeserializer
Source§type DeserializedFrame<'a> = &'a [u8]
type DeserializedFrame<'a> = &'a [u8]
Type returned by
deserialize_frame Read moreSource§fn check_deserialize_frame(
&mut self,
data: &[u8],
_eof: bool,
) -> Result<bool, Error>
fn check_deserialize_frame( &mut self, data: &[u8], _eof: bool, ) -> Result<bool, Error>
Returns if the given buffer contains a full frame starting at offset=0. Read more
Source§fn deserialize_frame<'a>(
&'a mut self,
data: &'a [u8],
) -> Result<SizedFrame<Self::DeserializedFrame<'a>>, Error>
fn deserialize_frame<'a>( &'a mut self, data: &'a [u8], ) -> Result<SizedFrame<Self::DeserializedFrame<'a>>, Error>
Deserializes the given buffer into a message frame, returning the deserialized frame and serialized frame length. Read more
Auto Trait Implementations§
impl Freeze for U64FrameDeserializer
impl RefUnwindSafe for U64FrameDeserializer
impl Send for U64FrameDeserializer
impl Sync for U64FrameDeserializer
impl Unpin for U64FrameDeserializer
impl UnsafeUnpin for U64FrameDeserializer
impl UnwindSafe for U64FrameDeserializer
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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