fn complete(&mut self, result: Result<http::response::Builder, Error>) {
        if let Some(sender) = self.sender.take() {
            if let Err(e) = result.as_ref() {
                log::warn!(
                    "request completed with error [id={:?}]: {}",
                    self.shared.id,
                    e
                );
            }

            match sender.send(result) {
                Ok(()) => {
                    self.shared.waker.wake();
                }
                Err(_) => {
                    log::debug!("request canceled by user [id={:?}]", self.shared.id);
                }
            }
        }
    }
/// Complete the associated future with a result.
Complete the associated future with a result.
Complete the associated future with a result .
fn complete(&mut self, result: Result<http::response::Builder, Error>) {
        if let Some(sender) = self.sender.take() {
            if let Err(e) = result.as_ref() {
                log::warn!(
                    "request completed with error [id={:?}]: {}",
                    self.shared.id,
                    e
                );
            }
            match sender.send(result) {
                Ok(()) => {
                    self.shared.waker.wake();
                }
                Err(_) => {
                    log::debug!("request canceled by user [id={:?}]", self.shared.id);
                }
            }
        }
    }
fn complete ( & mut self , result : Result < http :: response :: Builder , Error > ) { if let Some ( sender ) = self . sender . take ( ) { if let Err ( e ) = result . as_ref ( ) { log :: warn ! ( " " self shared id e ) ; } match sender . send ( result ) { Ok ( ( ) ) => { self . shared . waker . wake ( ) ; } Err ( _ ) => { log :: debug ! ( " " self shared id ) ; } } } }
Complete the associated future with a result.
Complete the associated future with a result .
&mut self
result
Result<http::response::Builder, Error>