[−][src]Struct capnp::message::TypedReader
A message reader whose value is known to be of type T
.
Methods
impl<S, T> TypedReader<S, T> where
S: ReaderSegments,
T: for<'a> Owned<'a>,
[src]
S: ReaderSegments,
T: for<'a> Owned<'a>,
pub fn new(message: Reader<S>) -> Self
[src]
pub fn get<'a>(&'a self) -> Result<<T as Owned<'a>>::Reader>
[src]
pub fn into_inner(self) -> Reader<S>
[src]
Trait Implementations
impl<S, T> From<Reader<S>> for TypedReader<S, T> where
S: ReaderSegments,
T: for<'a> Owned<'a>,
[src]
S: ReaderSegments,
T: for<'a> Owned<'a>,
fn from(message: Reader<S>) -> TypedReader<S, T>
[src]
impl<A, T> From<Builder<A>> for TypedReader<Builder<A>, T> where
A: Allocator,
T: for<'a> Owned<'a>,
[src]
A: Allocator,
T: for<'a> Owned<'a>,
fn from(message: Builder<A>) -> TypedReader<Builder<A>, T>
[src]
Auto Trait Implementations
impl<S, T> Send for TypedReader<S, T> where
S: Send,
T: Send,
S: Send,
T: Send,
impl<S, T> !Sync for TypedReader<S, T>
impl<S, T> Unpin for TypedReader<S, T> where
S: Unpin,
T: Unpin,
S: Unpin,
T: Unpin,
impl<S, T> UnwindSafe for TypedReader<S, T> where
S: UnwindSafe,
T: UnwindSafe,
S: UnwindSafe,
T: UnwindSafe,
impl<S, T> !RefUnwindSafe for TypedReader<S, T>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,