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.