[−][src]Enum libp2p_request_response::RequestResponseMessage
An inbound request or response.
Variants
A request message.
Fields of Request
request: TRequest
The request message.
channel: ResponseChannel<TResponse>
The sender of the request who is awaiting a response.
A response message.
Fields of Response
request_id: RequestId
The ID of the request that produced this response.
response: TResponse
The response message.
Trait Implementations
impl<TRequest: Debug, TResponse: Debug> Debug for RequestResponseMessage<TRequest, TResponse>
[src]
Auto Trait Implementations
impl<TRequest, TResponse> !RefUnwindSafe for RequestResponseMessage<TRequest, TResponse>
impl<TRequest, TResponse> Send for RequestResponseMessage<TRequest, TResponse> where
TRequest: Send,
TResponse: Send,
TRequest: Send,
TResponse: Send,
impl<TRequest, TResponse> Sync for RequestResponseMessage<TRequest, TResponse> where
TRequest: Sync,
TResponse: Send + Sync,
TRequest: Sync,
TResponse: Send + Sync,
impl<TRequest, TResponse> Unpin for RequestResponseMessage<TRequest, TResponse> where
TRequest: Unpin,
TResponse: Unpin,
TRequest: Unpin,
TResponse: Unpin,
impl<TRequest, TResponse> !UnwindSafe for RequestResponseMessage<TRequest, 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>,