Struct capnp::any_pointer::Reader
source · pub struct Reader<'a> { /* private fields */ }
Implementations§
source§impl<'a> Reader<'a>
impl<'a> Reader<'a>
pub fn new(reader: PointerReader<'_>) -> Reader<'_>
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: FromPointerReader<'a>>(&self) -> Result<T>
pub fn get_as_capability<T: FromClientHook>(&self) -> Result<T>
pub fn get_pipelined_cap( &self, ops: &[PipelineOp] ) -> Result<Box<dyn ClientHook>>
Trait Implementations§
source§impl<'a> DowncastReader<'a> for Reader<'a>
impl<'a> DowncastReader<'a> for Reader<'a>
fn downcast_reader(value: Reader<'a>) -> Self
source§impl<'a> FromPointerReader<'a> for Reader<'a>
impl<'a> FromPointerReader<'a> for Reader<'a>
fn get_from_pointer( reader: &PointerReader<'a>, default: Option<&'a [Word]> ) -> Result<Reader<'a>>
source§impl<'a> SetterInput<Owned> for Reader<'a>
impl<'a> SetterInput<Owned> for Reader<'a>
source§fn set_pointer_builder<'b>(
pointer: PointerBuilder<'b>,
value: Reader<'a>,
canonicalize: bool
) -> Result<()>
fn set_pointer_builder<'b>( pointer: PointerBuilder<'b>, value: Reader<'a>, canonicalize: bool ) -> Result<()>
Copies the values from
input
into builder
, where builder
represents the backing memory of a <Receiver as Owned>::Builder
. Read moreimpl<'a> Copy for Reader<'a>
Auto Trait Implementations§
impl<'a> Freeze for Reader<'a>
impl<'a> !RefUnwindSafe for Reader<'a>
impl<'a> !Send for Reader<'a>
impl<'a> !Sync for Reader<'a>
impl<'a> Unpin for Reader<'a>
impl<'a> !UnwindSafe for Reader<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more