[][src]Struct capnp::message::TypedReader

pub struct TypedReader<S, T> where
    S: ReaderSegments,
    T: for<'a> Owned<'a>, 
{ /* fields omitted */ }

A message reader whose value is known to be of type T.

Methods

impl<S, T> TypedReader<S, T> where
    S: ReaderSegments,
    T: for<'a> Owned<'a>, 
[src]

pub fn new(message: Reader<S>) -> Self[src]

pub fn get<'a>(&'a self) -> Result<<T as Owned<'a>>::Reader>[src]

pub fn into_inner(self) -> Reader<S>[src]

Trait Implementations

impl<S, T> From<Reader<S>> for TypedReader<S, T> where
    S: ReaderSegments,
    T: for<'a> Owned<'a>, 
[src]

impl<A, T> From<Builder<A>> for TypedReader<Builder<A>, T> where
    A: Allocator,
    T: for<'a> Owned<'a>, 
[src]

Auto Trait Implementations

impl<S, T> Send for TypedReader<S, T> where
    S: Send,
    T: Send

impl<S, T> !Sync for TypedReader<S, T>

impl<S, T> Unpin for TypedReader<S, T> where
    S: Unpin,
    T: Unpin

impl<S, T> UnwindSafe for TypedReader<S, T> where
    S: UnwindSafe,
    T: UnwindSafe

impl<S, T> !RefUnwindSafe for TypedReader<S, T>

Blanket Implementations

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 = !

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]