[][src]Struct vessels::kind::Serde

pub struct Serde<T: Serialize + DeserializeOwned + Send + 'static>(pub T);

Methods

impl<T: Serialize + DeserializeOwned + Send + 'static> Serde<T>[src]

pub fn new(item: T) -> Self[src]

Trait Implementations

impl<T: Serialize + DeserializeOwned + Sync + Send + Unpin + 'static> Kind for Serde<T>[src]

type ConstructItem = T

The item transmitted over the network to the construction task from deconstruction. Read more

type ConstructError = WrappedError<Void>

The failure condition of constructing a concrete type from communicated data.

type ConstructFuture = Future<ConstructResult<Self>>

The concrete future type returned by the construction process.

type DeconstructItem = ()

The item transmitted over the network from the construction task to deconstruction. Read more

type DeconstructError = WrappedError<Void>

The failure condition of constructing a concrete type from communicated data.

type DeconstructFuture = Future<DeconstructResult<Self>>

The concrete future type returned by the deconstruction process. This is used to only to communicate failure of deconstruction and does not return a value. Read more

impl<T: Serialize + DeserializeOwned + Send + 'static> From<T> for Serde<T>[src]

impl<T: Clone + Serialize + DeserializeOwned + Send + 'static> Clone for Serde<T>[src]

impl<T: Copy + Serialize + DeserializeOwned + Send + 'static> Copy for Serde<T>[src]

impl<T: Default + Serialize + DeserializeOwned + Send + 'static> Default for Serde<T>[src]

impl<T: Eq + Serialize + DeserializeOwned + Send + 'static> Eq for Serde<T>[src]

impl<T: Ord + Serialize + DeserializeOwned + Send + 'static> Ord for Serde<T>[src]

impl<T: PartialEq + Serialize + DeserializeOwned + Send + 'static> PartialEq<Serde<T>> for Serde<T>[src]

impl<T: PartialOrd + Serialize + DeserializeOwned + Send + 'static> PartialOrd<Serde<T>> for Serde<T>[src]

impl<T: Debug + Serialize + DeserializeOwned + Send + 'static> Debug for Serde<T>[src]

impl<T: Serialize + DeserializeOwned + Send + 'static> Deref for Serde<T>[src]

type Target = T

The resulting type after dereferencing.

impl<T: Hash + Serialize + DeserializeOwned + Send + 'static> Hash for Serde<T>[src]

impl<T: Serialize + DeserializeOwned + Send + 'static> StructuralPartialEq for Serde<T>[src]

impl<T: Serialize + DeserializeOwned + Send + 'static> StructuralEq for Serde<T>[src]

Auto Trait Implementations

impl<T> Send for Serde<T>

impl<T> Sync for Serde<T> where
    T: Sync

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

impl<T> UnwindSafe for Serde<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for Serde<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<K> OnTo for K where
    K: Kind
[src]

impl<'de, U, K> ApplyDecode<'de, K> for U where
    K: Kind
[src]

impl<T> AsKind<Default> for T where
    T: 'static + Send + Sync + Unpin + Default
[src]

type Kind = Default<T>

impl<T> Share for T where
    T: Clone
[src]

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any