Trait Body

pub trait Body: Decode<Self::MarkerAtTopLevel, DefaultFuchsiaResourceDialect> + Decode<Self::MarkerInResultUnion, DefaultFuchsiaResourceDialect> {
    type MarkerAtTopLevel: ValueTypeMarker<Owned = Self> + ValueTypeMarker + for<'a> ValueTypeMarker
       where <Self::MarkerAtTopLevel as TypeMarker>::Owned: Decode<Self::MarkerAtTopLevel, DefaultFuchsiaResourceDialect>,
             <Self::MarkerAtTopLevel as ValueTypeMarker>::Borrowed<'a>: for<'a> Encode<Self::MarkerAtTopLevel, DefaultFuchsiaResourceDialect>;
    type MarkerInResultUnion: ValueTypeMarker<Owned = Self> + ValueTypeMarker + for<'a> ValueTypeMarker
       where <Self::MarkerInResultUnion as TypeMarker>::Owned: Decode<Self::MarkerInResultUnion, DefaultFuchsiaResourceDialect>,
             <Self::MarkerInResultUnion as ValueTypeMarker>::Borrowed<'a>: for<'a> Encode<Self::MarkerInResultUnion, DefaultFuchsiaResourceDialect>;
}
Expand description

Implementation of fidl_message::Body.

Required Associated Types§

type MarkerAtTopLevel: ValueTypeMarker<Owned = Self> + ValueTypeMarker + for<'a> ValueTypeMarker where <Self::MarkerAtTopLevel as TypeMarker>::Owned: Decode<Self::MarkerAtTopLevel, DefaultFuchsiaResourceDialect>, <Self::MarkerAtTopLevel as ValueTypeMarker>::Borrowed<'a>: for<'a> Encode<Self::MarkerAtTopLevel, DefaultFuchsiaResourceDialect>

The marker type to use when the body is at the top-level.

type MarkerInResultUnion: ValueTypeMarker<Owned = Self> + ValueTypeMarker + for<'a> ValueTypeMarker where <Self::MarkerInResultUnion as TypeMarker>::Owned: Decode<Self::MarkerInResultUnion, DefaultFuchsiaResourceDialect>, <Self::MarkerInResultUnion as ValueTypeMarker>::Borrowed<'a>: for<'a> Encode<Self::MarkerInResultUnion, DefaultFuchsiaResourceDialect>

The marker type to use when the body is nested in a result union.

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.

Implementations on Foreign Types§

§

impl Body for ()

Implementors§

§

impl<T> Body for T
where T: Persistable,