FromBytes

Trait FromBytes 

Source
pub trait FromBytes<'a> {
    type Output: Sized;

    // Required method
    fn from_bytes(slice: &'a [u8]) -> Result<Message<Self::Output>>;
}

Required Associated Types§

Required Methods§

Source

fn from_bytes(slice: &'a [u8]) -> Result<Message<Self::Output>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'a> FromBytes<'a> for Buffer

Source§

type Output = &'a [u8]

Source§

impl<'a> FromBytes<'a> for NullTerminatedString

Source§

type Output = &'a str

Source§

impl<'a, B, T: FromBytes<'a, Output: ToUsize>, S: FromBytes<'a, Output: ToUsize>, Item> FromBytes<'a> for Sized<B, T, S, Item>

Source§

type Output = List<&'a [u8], T, Item>

Source§

impl<'a, T: ReadBytes> FromBytes<'a> for ValueBE<T>

Source§

impl<'a, T: ReadBytes> FromBytes<'a> for ValueLE<T>

Source§

impl<'a, T: FromBytes<'a>> FromBytes<'a> for Optional<T>

Source§

impl<'a, T: FromBytes<'a, Output: ToUsize>> FromBytes<'a> for VarcharString<T>

Source§

type Output = &'a str

Source§

impl<'a, T: FromBytes<'a, Output: ToUsize>, Item> FromBytes<'a> for Unsized<T, Item>

Source§

type Output = List<&'a [u8], T, Item>

Source§

impl<'a, T: FromBytes<'a, Output: ToUsize>, Item: Size> FromBytes<'a> for Array<&'a [u8], T, Item>

Source§

type Output = Array<&'a [u8], T, Item>

Source§

impl<'a, T: FromBytes<'a, Output: ToUsize>, Item: FromBytes<'a, Output = Item>> FromBytes<'a> for List<&'a [u8], T, Item>

Source§

type Output = List<&'a [u8], T, Item>