pub struct Reply<T> {
pub id: RequestId,
pub body: ReplyBody<T>,
}Expand description
A reply in its envelope: { "id": n, "result": .. } or { "id": n, "error": .. }.
Fields§
§id: RequestIdThe request’s id.
body: ReplyBody<T>The answer.
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for Reply<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Reply<T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<T: PartialEq> StructuralPartialEq for Reply<T>
Auto Trait Implementations§
impl<T> Forget for Reply<T>
impl<T> Freeze for Reply<T>
impl<T> Move for Reply<T>
impl<T> RefUnwindSafe for Reply<T>where
T: RefUnwindSafe,
impl<T> Send for Reply<T>
impl<T> Sync for Reply<T>
impl<T> Unpin for Reply<T>
impl<T> UnsafeUnpin for Reply<T>
impl<T> UnwindSafe for Reply<T>where
T: UnwindSafe,
RawVecInner: 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