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]

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.

Sets the root to a canonicalized version of value. If this was the first action taken on this Builder, then a subsequence call to get_segments_for_output() should return a single segment, containing the full canonicalized message.

impl Builder<HeapAllocator>
[src]

Trait Implementations

impl<A, T> From<Builder<A>> for TypedReader<Builder<A>, T> where
    A: Allocator,
    T: for<'a> Owned<'a>, 
[src]

Performs the conversion.

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

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

Gets the segment with index idx. Returns None if idx is out of range.

Gets the number of segments.

Auto Trait Implementations

impl<A> !Sync for Builder<A>