[][src]Enum kompact::messaging::UnpackError

pub enum UnpackError<T> {
    NoIdMatch(T),
    NoCast(Box<dyn Any + Send + 'static>),
    DeserError(SerError),
}

An error that is thrown when deserialisation of a NetMessage is attempted.

Variants

NoIdMatch(T)

ser_id did not match the given Deserialiser.

NoCast(Box<dyn Any + Send + 'static>)

Box<dyn Any>::downcast() failed.

DeserError(SerError)

An error occurred during deserialisation of the buffer.

This can not contain T, as the buffer may have been corrupted during the failed attempt.

Methods

impl<T> UnpackError<T>[src]

pub fn get(self) -> Option<T>[src]

Retrieve the wrapped T instance, if any

pub fn get_box(self) -> Option<Box<dyn Any + Send + 'static>>[src]

Retrieve a wrapped any box, if there is any

Trait Implementations

impl<T: Debug> Debug for UnpackError<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for UnpackError<T>

impl<T> Send for UnpackError<T> where
    T: Send

impl<T> !Sync for UnpackError<T>

impl<T> Unpin for UnpackError<T> where
    T: Unpin

impl<T> !UnwindSafe for UnpackError<T>

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,