[][src]Struct capnp::any_pointer::Reader

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

Methods

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

pub fn new<'b>(reader: PointerReader<'b>) -> Reader<'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 get_as<T: FromPointerReader<'a>>(&self) -> Result<T>[src]

pub fn get_as_capability<T: FromClientHook>(&self) -> Result<T>[src]

pub fn get_pipelined_cap(
    &self,
    ops: &[PipelineOp]
) -> Result<Box<dyn ClientHook>>
[src]

Trait Implementations

impl<'a> FromPointerReader<'a> for Reader<'a>[src]

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

impl<'a> Imbue<'a> for Reader<'a>[src]

impl<'a> Clone for Reader<'a>[src]

impl<'a> Copy for Reader<'a>[src]

Auto Trait Implementations

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

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

impl<'a> Unpin for Reader<'a>

impl<'a> !UnwindSafe for Reader<'a>

impl<'a> !RefUnwindSafe for Reader<'a>

Blanket Implementations

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

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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