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