[][src]Struct capnp::any_pointer::Builder

pub struct Builder<'a> { /* fields omitted */ }

Methods

impl<'a> Builder<'a>[src]

pub fn new<'b>(builder: PointerBuilder<'a>) -> Builder<'a>[src]

pub fn borrow<'b>(&'b mut self) -> Builder<'b>[src]

Deprecated since 0.8.17:

use reborrow() instead

pub fn reborrow<'b>(&'b mut self) -> Builder<'b>[src]

pub fn is_null(&self) -> bool[src]

pub fn target_size(&self) -> Result<MessageSize>[src]

Gets the total size of the target and all of its children. Does not count far pointer overhead.

pub fn total_size(&self) -> Result<MessageSize>[src]

Deprecated since 0.8.10:

use target_size() instead

pub fn get_as<T: FromPointerBuilder<'a>>(self) -> Result<T>[src]

pub fn init_as<T: FromPointerBuilder<'a>>(self) -> T[src]

pub fn initn_as<T: FromPointerBuilder<'a>>(self, size: u32) -> T[src]

pub fn set_as<To, From: SetPointerBuilder<To>>(self, value: From) -> Result<()>[src]

pub fn set_as_capability(&mut self, value: Box<dyn ClientHook>)[src]

pub fn clear(&mut self)[src]

pub fn as_reader(self) -> Reader<'a>[src]

Trait Implementations

impl<'a> FromPointerBuilder<'a> for Builder<'a>[src]

impl<'a> SetPointerBuilder<Builder<'a>> for Reader<'a>[src]

impl<'a> ImbueMut<'a> for Builder<'a>[src]

Auto Trait Implementations

impl<'a> !Send for Builder<'a>

impl<'a> !Sync for Builder<'a>

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.