pub struct Response<T> {
pub request_id: u32,
pub requester: u64,
pub requester_worker: u16,
pub payload: T,
}
Fields§
§request_id: u32
§requester: u64
§requester_worker: u16
§payload: T
Trait Implementations§
Source§impl<'a, T: Decode<'a>> Decode<'a> for Response<T>
impl<'a, T: Decode<'a>> Decode<'a> for Response<T>
fn decode(cursor: &DecodeCursor<'a>) -> DecodeResult<Self>
Source§impl<T: Encode> Encode for Response<T>
impl<T: Encode> Encode for Response<T>
fn scratch_len(&self) -> usize
fn encode(&self, cursor: &mut EncodeCursor<'_>)
Source§impl<T: Ord> Ord for Response<T>
impl<T: Ord> Ord for Response<T>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: Owned> Owned for Response<T>
impl<T: Owned> Owned for Response<T>
type Lazy<'a> = ResponseLazy<'a, T>
fn lazy_to_owned(lazy: Self::Lazy<'_>) -> DecodeResult<Self>
Source§impl<T: PartialOrd> PartialOrd for Response<T>
impl<T: PartialOrd> PartialOrd for Response<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<T: Owned> Compatible<Response<T>> for Response<T>
impl<T: Owned, Payload: Encode + Compatible<T>> Compatible<Response<T>> for ResponseGen<Payload>
impl<'a, T: Owned> Compatible<Response<T>> for ResponseLazy<'a, T>
impl<T: Owned, Payload: Encode + Compatible<T>> Compatible<ResponseGen<Payload>> for Response<T>
impl<'a, T: Owned> Compatible<ResponseLazy<'a, T>> for Response<T>
impl<T: Copy> Copy for Response<T>
impl<T: Eq> Eq for Response<T>
impl<T> StructuralPartialEq for Response<T>
Auto Trait Implementations§
impl<T> Freeze for Response<T>where
T: Freeze,
impl<T> RefUnwindSafe for Response<T>where
T: RefUnwindSafe,
impl<T> Send for Response<T>where
T: Send,
impl<T> Sync for Response<T>where
T: Sync,
impl<T> Unpin for Response<T>where
T: Unpin,
impl<T> UnwindSafe for Response<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.