Struct capnp::any_pointer::Builder
source · pub struct Builder<'a> { /* private fields */ }
Implementations
sourceimpl<'a> Builder<'a>
impl<'a> Builder<'a>
pub fn new<'b>(builder: PointerBuilder<'a>) -> Builder<'a>
pub fn reborrow<'b>(&'b mut self) -> Builder<'b>
pub fn is_null(&self) -> bool
sourcepub fn target_size(&self) -> Result<MessageSize>
pub fn target_size(&self) -> Result<MessageSize>
Gets the total size of the target and all of its children. Does not count far pointer overhead.
pub fn get_as<T: FromPointerBuilder<'a>>(self) -> Result<T>
pub fn init_as<T: FromPointerBuilder<'a>>(self) -> T
pub fn initn_as<T: FromPointerBuilder<'a>>(self, size: u32) -> T
pub fn set_as<To, From: SetPointerBuilder<To>>(self, value: From) -> Result<()>
pub fn set_as_capability(&mut self, value: Box<dyn ClientHook>)
pub fn clear(&mut self)
pub fn as_reader(self) -> Reader<'a>
👎Deprecated since 0.9.2: use into_reader()
pub fn into_reader(self) -> Reader<'a>
Trait Implementations
sourceimpl<'a> FromPointerBuilder<'a> for Builder<'a>
impl<'a> FromPointerBuilder<'a> for Builder<'a>
fn init_pointer(builder: PointerBuilder<'a>, _len: u32) -> Builder<'a>
fn get_from_pointer(builder: PointerBuilder<'a>) -> Result<Builder<'a>>
sourceimpl<'a> SetPointerBuilder<Builder<'a>> for Reader<'a>
impl<'a> SetPointerBuilder<Builder<'a>> for Reader<'a>
fn set_pointer_builder<'b>(
pointer: PointerBuilder<'b>,
value: Reader<'a>,
canonicalize: bool
) -> Result<()>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Builder<'a>
impl<'a> !Send for Builder<'a>
impl<'a> !Sync for Builder<'a>
impl<'a> Unpin for Builder<'a>
impl<'a> !UnwindSafe for Builder<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more