Struct capnp::message::TypedReader
source · pub struct TypedReader<S, T>where
S: ReaderSegments,
T: for<'a> Owned<'a>,{ /* private fields */ }
Expand description
A message reader whose value is known to be of type T
.
Please see module documentation for more info about reader type specialization.
Implementations§
Trait Implementations§
source§impl<A, T> From<Builder<A>> for TypedReader<Builder<A>, T>where
A: Allocator,
T: for<'a> Owned<'a>,
impl<A, T> From<Builder<A>> for TypedReader<Builder<A>, T>where
A: Allocator,
T: for<'a> Owned<'a>,
source§impl<S, T> From<Reader<S>> for TypedReader<S, T>where
S: ReaderSegments,
T: for<'a> Owned<'a>,
impl<S, T> From<Reader<S>> for TypedReader<S, T>where
S: ReaderSegments,
T: for<'a> Owned<'a>,
source§fn from(message: Reader<S>) -> TypedReader<S, T>
fn from(message: Reader<S>) -> TypedReader<S, T>
Converts to this type from the input type.
source§impl<A, T> From<TypedBuilder<T, A>> for TypedReader<Builder<A>, T>where
A: Allocator,
T: for<'a> Owned<'a>,
impl<A, T> From<TypedBuilder<T, A>> for TypedReader<Builder<A>, T>where
A: Allocator,
T: for<'a> Owned<'a>,
source§fn from(builder: TypedBuilder<T, A>) -> TypedReader<Builder<A>, T>
fn from(builder: TypedBuilder<T, A>) -> TypedReader<Builder<A>, T>
Converts to this type from the input type.