Struct capnp::any_pointer::Reader
source · [−]pub struct Reader<'a> { /* private fields */ }
Implementations
sourceimpl<'a> Reader<'a>
impl<'a> Reader<'a>
pub fn new<'b>(reader: PointerReader<'b>) -> Reader<'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: 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
sourceimpl<'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>>
sourceimpl<'a> SetPointerBuilder for Reader<'a>
impl<'a> SetPointerBuilder for Reader<'a>
fn set_pointer_builder<'b>(
pointer: PointerBuilder<'b>,
value: Reader<'a>,
canonicalize: bool
) -> Result<()>
impl<'a> Copy for Reader<'a>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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