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]
A: Allocator,
fn new(allocator: A) -> Self
[src]
fn init_root<'a, T: FromPointerBuilder<'a>>(&'a mut self) -> T
[src]
Initializes the root as a value of the given type.
fn get_root<'a, T: FromPointerBuilder<'a>>(&'a mut self) -> Result<T>
[src]
Gets the root, interpreting it as the given type.
fn get_root_as_reader<'a, T: FromPointerReader<'a>>(&'a self) -> Result<T>
[src]
fn set_root<To, From: SetPointerBuilder<To>>(
&mut self,
value: From
) -> Result<()>
[src]
&mut self,
value: From
) -> Result<()>
Sets the root to a deep copy of the given value.
fn get_segments_for_output<'a>(&'a self) -> OutputSegments<'a>
[src]
fn into_reader(self) -> Reader<Builder<A>>
[src]
impl Builder<HeapAllocator>
[src]
fn new_default() -> Builder<HeapAllocator>
[src]
Trait Implementations
impl<A> Send for Builder<A> where
A: Send + Allocator,
[src]
A: Send + Allocator,
impl<A> ReaderSegments for Builder<A> where
A: Allocator,
[src]
A: Allocator,