Struct capnp::any_pointer::Reader
[−]
[src]
pub struct Reader<'a> { /* fields omitted */ }
Methods
impl<'a> Reader<'a>
[src]
fn new<'b>(reader: PointerReader<'b>) -> Reader<'b>
fn is_null(&self) -> bool
fn target_size(&self) -> Result<MessageSize>
Gets the total size of the target and all of its children. Does not count far pointer overhead.
fn total_size(&self) -> Result<MessageSize>
Deprecated since 0.8.7
: use target_size() instead
fn get_as<T: FromPointerReader<'a>>(&self) -> Result<T>
fn get_as_capability<T: FromClientHook>(&self) -> Result<T>
fn get_pipelined_cap(&self, ops: &[PipelineOp]) -> Result<Box<ClientHook>>
Trait Implementations
impl<'a> Copy for Reader<'a>
[src]
impl<'a> Clone for Reader<'a>
[src]
fn clone(&self) -> Reader<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<'a> FromPointerReader<'a> for Reader<'a>
[src]
fn get_from_pointer(reader: &PointerReader<'a>) -> Result<Reader<'a>>
impl<'a> SetPointerBuilder<Builder<'a>> for Reader<'a>
[src]
fn set_pointer_builder<'b>(
pointer: PointerBuilder<'b>,
value: Reader<'a>
) -> Result<()>
pointer: PointerBuilder<'b>,
value: Reader<'a>
) -> Result<()>
fn set_pointer_canonical<'b>(
pointer: PointerBuilder<'b>,
value: Reader<'a>
) -> Result<()>
pointer: PointerBuilder<'b>,
value: Reader<'a>
) -> Result<()>