[−][src]Struct async_codec_lite::CborCodec
Implementations
impl<Enc, Dec> CborCodec<Enc, Dec>
[src]
Trait Implementations
impl<Enc, Dec> Clone for CborCodec<Enc, Dec>
[src]
pub fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<Enc, Dec> Debug for CborCodec<Enc, Dec>
[src]
impl<Enc, Dec> Decoder for CborCodec<Enc, Dec> where
Dec: Deserialize<'de> + 'static,
[src]
Dec: Deserialize<'de> + 'static,
type Error = Error
type Item = Dec
pub fn decode(
&mut self,
buf: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
[src]
&mut self,
buf: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
pub fn decode_eof(
&mut self,
src: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
[src]
&mut self,
src: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
impl<Enc, Dec> Default for CborCodec<Enc, Dec>
[src]
impl<Enc, Dec> Encoder for CborCodec<Enc, Dec> where
Enc: Serialize + 'static,
[src]
Enc: Serialize + 'static,
type Error = Error
type Item = Enc
pub fn encode(
&mut self,
data: Self::Item,
buf: &mut BytesMut
) -> Result<(), Self::Error>
[src]
&mut self,
data: Self::Item,
buf: &mut BytesMut
) -> Result<(), Self::Error>
impl<Enc, Dec> PartialEq<CborCodec<Enc, Dec>> for CborCodec<Enc, Dec>
[src]
Auto Trait Implementations
impl<Enc, Dec> RefUnwindSafe for CborCodec<Enc, Dec> where
Dec: RefUnwindSafe,
Enc: RefUnwindSafe,
[src]
Dec: RefUnwindSafe,
Enc: RefUnwindSafe,
impl<Enc, Dec> Send for CborCodec<Enc, Dec> where
Dec: Send,
Enc: Send,
[src]
Dec: Send,
Enc: Send,
impl<Enc, Dec> Sync for CborCodec<Enc, Dec> where
Dec: Sync,
Enc: Sync,
[src]
Dec: Sync,
Enc: Sync,
impl<Enc, Dec> Unpin for CborCodec<Enc, Dec> where
Dec: Unpin,
Enc: Unpin,
[src]
Dec: Unpin,
Enc: Unpin,
impl<Enc, Dec> UnwindSafe for CborCodec<Enc, Dec> where
Dec: UnwindSafe,
Enc: UnwindSafe,
[src]
Dec: UnwindSafe,
Enc: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,