[][src]Struct tarpc_lib::Response

#[non_exhaustive]
pub struct Response<T> { pub request_id: u64, pub message: Result<T, ServerError>, }

A response from a server to a client.

Fields (Non-exhaustive)

Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
request_id: u64

The ID of the request being responded to.

message: Result<T, ServerError>

The response body, or an error if the request failed.

Trait Implementations

impl<T: Eq> Eq for Response<T>[src]

impl<T: PartialEq> PartialEq<Response<T>> for Response<T>[src]

impl<T: Debug> Debug for Response<T>[src]

Auto Trait Implementations

impl<T> Send for Response<T> where
    T: Send

impl<T> Sync for Response<T> where
    T: Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.