pub(crate) async fn respond(mut self, data: T) {
        if let Some(sender) = self.sender.take() {
            if let Err(data) = sender.send(data) {
                if self.is_shutting_down.is_set() {
                    debug!(
                        ?data,
                        "ignored failure to send response to request down oneshot channel"
                    );
                } else {
                    error!(
                        ?data,
                        "could not send response to request down oneshot channel"
                    );
                }
            }
        } else {
            error!(
                ?data,
                "tried to send a value down a responder channel, but it was already used"
            );
        }
    }
/// Send `data` to the origin of the request.
Send `data` to the origin of the request.
Send ` data ` to the origin of the request .
pub(crate) async fn respond(mut self, data: T) {
        if let Some(sender) = self.sender.take() {
            if let Err(data) = sender.send(data) {
                if self.is_shutting_down.is_set() {
                    debug!(
                        ?data,
                        "ignored failure to send response to request down oneshot channel"
                    );
                } else {
                    error!(
                        ?data,
                        "could not send response to request down oneshot channel"
                    );
                }
            }
        } else {
            error!(
                ?data,
                "tried to send a value down a responder channel, but it was already used"
            );
        }
    }
pub ( crate ) async fn respond ( mut self , data : T ) { if let Some ( sender ) = self . sender . take ( ) { if let Err ( data ) = sender . send ( data ) { if self . is_shutting_down . is_set ( ) { debug ! ( data " " ) ; } else { error ! ( data " " ) ; } } } else { error ! ( data " " ) ; } }
Send `data` to the origin of the request.
Send ` data ` to the origin of the request .
mut self
data
T
mut self
data
T