Struct interchange::Responder [−][src]
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
impl<I: Interchange> Send for Responder<I>[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,