Struct capnp::message::Builder
[−]
[src]
pub struct Builder<A> where A: Allocator { /* fields omitted */ }
A container used to build a message.
Methods
impl<A> Builder<A> where A: Allocator
[src]
fn new(allocator: A) -> Self
fn init_root<'a, T: FromPointerBuilder<'a>>(&'a mut self) -> T
Initializes the root as a value of the given type.
fn get_root<'a, T: FromPointerBuilder<'a>>(&'a mut self) -> Result<T>
Gets the root, interpreting it as the given type.
fn get_root_as_reader<'a, T: FromPointerReader<'a>>(&'a self) -> Result<T>
fn set_root<To, From: SetPointerBuilder<To>>(&mut self,
value: From)
-> Result<()>
value: From)
-> Result<()>
Sets the root to a deep copy of the given value.