pub struct ResponseLazy<'a, T> { /* private fields */ }
Implementations§
Source§impl<'a, T: Owned> ResponseLazy<'a, T>
impl<'a, T: Owned> ResponseLazy<'a, T>
pub fn request_id(&self) -> DecodeResult<u32>
pub fn requester(&self) -> DecodeResult<u64>
pub fn requester_worker(&self) -> DecodeResult<u16>
pub fn payload(&self) -> DecodeResult<T::Lazy<'a>>
Trait Implementations§
Source§impl<'a, T> Clone for ResponseLazy<'a, T>
impl<'a, T> Clone for ResponseLazy<'a, T>
Source§impl<'a, T> Debug for ResponseLazy<'a, T>
impl<'a, T> Debug for ResponseLazy<'a, T>
Source§impl<'a, T: Owned> Decode<'a> for ResponseLazy<'a, T>
impl<'a, T: Owned> Decode<'a> for ResponseLazy<'a, T>
fn decode(cursor: &DecodeCursor<'a>) -> DecodeResult<Self>
Source§impl<'a, T: Owned> Encode for ResponseLazy<'a, T>
impl<'a, T: Owned> Encode for ResponseLazy<'a, T>
fn scratch_len(&self) -> usize
fn encode(&self, cursor: &mut EncodeCursor<'_>)
Source§impl<'a, T: Owned> PartialEq for ResponseLazy<'a, T>
impl<'a, T: Owned> PartialEq for ResponseLazy<'a, T>
Source§impl<'a, T: Owned> TryFrom<ResponseLazy<'a, T>> for Response<T>
impl<'a, T: Owned> TryFrom<ResponseLazy<'a, T>> for Response<T>
Source§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
impl<'a, T: Owned> Compatible<Response<T>> for ResponseLazy<'a, T>
impl<'a, T: Owned> Compatible<ResponseLazy<'a, T>> for Response<T>
impl<'a, T: Owned> Compatible<ResponseLazy<'a, T>> for ResponseLazy<'a, T>
impl<'a, T> Copy for ResponseLazy<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for ResponseLazy<'a, T>
impl<'a, T> RefUnwindSafe for ResponseLazy<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for ResponseLazy<'a, T>where
T: Send,
impl<'a, T> Sync for ResponseLazy<'a, T>where
T: Sync,
impl<'a, T> Unpin for ResponseLazy<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for ResponseLazy<'a, T>where
T: UnwindSafe,
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