Struct interchange::Responder[][src]

pub struct Responder<I: 'static + Interchange> { /* fields omitted */ }

Processing end of the RPC interchange.

The owner of this end must eventually reply to any requests made to it. In case there is a cancelation of the request, this must be acknowledged instead.

Implementations

impl<I: Interchange> Responder<I>[src]

pub fn state(&self) -> State[src]

pub fn take_request(&mut self) -> Option<I::REQUEST>[src]

pub fn is_canceled(&self) -> bool[src]

pub fn acknowledge_cancel(&self) -> Result<(), ()>[src]

pub fn respond(&mut self, response: I::RESPONSE) -> Result<(), I::RESPONSE>[src]

Trait Implementations

Auto Trait Implementations

impl<I> Sync for Responder<I> where
    I: Sync
[src]

impl<I> Unpin for Responder<I>[src]

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.