Struct capnp::message::Builder [] [src]

pub struct Builder<A> where A: Allocator { /* fields omitted */ }

A container used to build a message.

The underlying implemention uses the Allocator as a trait object. However, we need to include A as concrete type parameter so that the typechecker can correctly deduce appropriate bounds like Send.

Methods

impl<A> Builder<A> where A: Allocator
[src]

Initializes the root as a value of the given type.

Gets the root, interpreting it as the given type.

Sets the root to a deep copy of the given value.

impl Builder<HeapAllocator>
[src]

Trait Implementations

impl<A> Send for Builder<A> where A: Send + Allocator
[src]

impl<A> Drop for Builder<A> where A: Allocator
[src]

A method called when the value goes out of scope. Read more