[][src]Struct kompact::messaging::Serialised

pub struct Serialised {
    pub ser_id: SerId,
    pub data: Bytes,
}

Wrapper for serialised data with a serialisation id

The serialisastion id identifies the Serialiser used to serialise the data, and should be used to match the corresponding Deserialiser as well.

Fields

ser_id: SerId

The serialisation id of the serialiser used to serialise the data

data: Bytes

The serialised bytes

Trait Implementations

impl Debug for Serialised[src]

impl<'_> TryFrom<&'_ (dyn Serialisable + '_)> for Serialised[src]

type Error = SerError

The type returned in the event of a conversion error.

impl<'_, '_, T, S> TryFrom<(&'_ T, &'_ S)> for Serialised where
    T: Debug,
    S: Serialiser<T>, 
[src]

type Error = SerError

The type returned in the event of a conversion error.

impl TryFrom<(u64, Bytes)> for Serialised[src]

type Error = SerError

The type returned in the event of a conversion error.

impl<E> TryFrom<Result<Serialised, E>> for Serialised[src]

type Error = E

The type returned in the event of a conversion error.

Auto Trait Implementations

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> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[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>,