[−][src]Struct libp2p_request_response::ResponseChannel
A channel for sending a response to an inbound request.
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,
TResponse: Send,
impl<TResponse> Sync for ResponseChannel<TResponse> where
TResponse: Send,
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]
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,
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> Same<T> for T
type Output = T
Should always be Self
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,