[][src]Struct photon_decode::Photon

pub struct Photon { /* fields omitted */ }

Methods

impl Photon[src]

pub fn new() -> Self[src]

pub fn try_decode(
    &mut self,
    payload: &[u8]
) -> Result<Vec<Result<Message, PhotonDecodeError>>, PhotonDecodeError>
[src]

pub fn decode(&mut self, payload: &[u8]) -> Vec<Message>[src]

Auto Trait Implementations

impl RefUnwindSafe for Photon

impl Send for Photon

impl Sync for Photon

impl Unpin for Photon

impl UnwindSafe for Photon

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.