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]
S: ReaderSegments,
fn new(segments: S, options: ReaderOptions) -> Self
[src]
fn get_root<'a, T: FromPointerReader<'a>>(&'a self) -> Result<T>
[src]
Gets the root of the message, interpreting it as the given type.
fn into_segments(self) -> S
[src]
fn is_canonical(&self) -> Result<bool>
[src]
Checks whether the message is canonical.
fn canonicalize(&self) -> Result<Vec<Word>>
[src]
Gets the canonical form of this message.