#[repr(transparent)]pub struct RawBytes<'a, T: BytesRepr>(pub Cow<'a, [u8]>, _);Expand description
Wrapper for a raw byte sequence, that came from a server.
T encodes the serialized representation.
Tuple Fields§
§0: Cow<'a, [u8]>Implementations§
Trait Implementations§
Source§impl<'de, T: BytesRepr> MyDeserialize<'de> for RawBytes<'de, T>
impl<'de, T: BytesRepr> MyDeserialize<'de> for RawBytes<'de, T>
Source§impl<T: BytesRepr> MySerialize for RawBytes<'_, T>
impl<T: BytesRepr> MySerialize for RawBytes<'_, T>
Source§impl<'a, T: Ord + BytesRepr> Ord for RawBytes<'a, T>
impl<'a, T: Ord + BytesRepr> Ord for RawBytes<'a, T>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a, T: PartialOrd + BytesRepr> PartialOrd for RawBytes<'a, T>
impl<'a, T: PartialOrd + BytesRepr> PartialOrd for RawBytes<'a, T>
impl<'a, T: Eq + BytesRepr> Eq for RawBytes<'a, T>
impl<'a, T: BytesRepr> StructuralPartialEq for RawBytes<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for RawBytes<'a, T>
impl<'a, T> RefUnwindSafe for RawBytes<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for RawBytes<'a, T>where
T: Send,
impl<'a, T> Sync for RawBytes<'a, T>where
T: Sync,
impl<'a, T> Unpin for RawBytes<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for RawBytes<'a, T>where
T: UnwindSafe,
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