[][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: Clone> Clone for Response<T>[src]

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

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

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

impl<C> Sink<Response<<C as Channel>::Resp>> for Throttler<C> where
    C: Channel
[src]

type Error = Error

The type of value produced by the sink when an error occurs.

impl<Req, Resp, T> Sink<Response<Resp>> for BaseChannel<Req, Resp, T> where
    T: Transport<Response<Resp>, ClientMessage<Req>>, 
[src]

type Error = Error

The type of value produced by the sink when an error occurs.

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,