pub fn cancel(&mut self) {
        if let SendRequestState::Sending(send) = &mut self.state {
            send.cancel();
        }
    }
/// Cancel the request
///
/// The peer will receive a request error with `REQUEST_CANCELLED` code.
Cancel the request
The peer will receive a request error with `REQUEST_CANCELLED` code.
Cancel the request The peer will receive a request error with ` REQUEST_CANCELLED ` code .
pub fn cancel(&mut self) {
        if let SendRequestState::Sending(send) = &mut self.state {
            send.cancel();
        }
    }
pub fn cancel ( & mut self ) { if let SendRequestState :: Sending ( send ) = & mut self . state { send . cancel ( ) ; } }
Cancel the request
The peer will receive a request error with `REQUEST_CANCELLED` code.
Cancel the request The peer will receive a request error with ` REQUEST_CANCELLED ` code .
&mut self