Struct capnp::message::Reader[][src]

pub struct Reader<S> where
    S: ReaderSegments
{ /* fields omitted */ }

A container used to read a message.

Methods

impl<S> Reader<S> where
    S: ReaderSegments
[src]

Gets the root of the message, interpreting it as the given type.

Checks whether the message is canonical.

Gets the canonical form of this message. Works by copying the message twice. For a canonicalization method that only requires one copy, see message::Builder::set_root_canonical().

Trait Implementations

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

Performs the conversion.

Auto Trait Implementations

impl<S> Send for Reader<S> where
    S: Send

impl<S> !Sync for Reader<S>