[][src]Struct libp2p_request_response::ResponseChannel

pub struct ResponseChannel<TResponse> { /* fields omitted */ }

A channel for sending a response to an inbound request.

See RequestResponse::send_response.

Implementations

impl<TResponse> ResponseChannel<TResponse>[src]

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

Checks whether the response channel is still open, i.e. the RequestResponse behaviour is still waiting for a a response to be sent via RequestResponse::send_response and this response channel.

If the response channel is no longer open then the inbound request timed out waiting for the response.

Trait Implementations

impl<TResponse: Debug> Debug for ResponseChannel<TResponse>[src]

Auto Trait Implementations

impl<TResponse> !RefUnwindSafe for ResponseChannel<TResponse>

impl<TResponse> Send for ResponseChannel<TResponse> where
    TResponse: Send

impl<TResponse> Sync for ResponseChannel<TResponse> where
    TResponse: Send

impl<TResponse> Unpin for ResponseChannel<TResponse>

impl<TResponse> !UnwindSafe for ResponseChannel<TResponse>

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> Same<T> for T

type Output = T

Should always be Self

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<V, T> VZip<V> for T where
    V: MultiLane<T>,