pub struct SendCommand {
pub message: WithSpan<ReqMessage>,
pub response: Sender<Result<Bytes, ReqError>>,
}Expand description
A command to send a request message and wait for a response.
Fields§
§message: WithSpan<ReqMessage>The request message to send.
response: Sender<Result<Bytes, ReqError>>The channel to send the peer’s response back.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SendCommand
impl !RefUnwindSafe for SendCommand
impl Send for SendCommand
impl Sync for SendCommand
impl Unpin for SendCommand
impl UnsafeUnpin for SendCommand
impl !UnwindSafe for SendCommand
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more