pub(crate) fn close(&mut self) {
        // TODO: what if the user calls this multiple times?
        // We send a dummy `0` error code with no message, as the API of StreamMuxer doesn't
        // support this.
        self.connection
            .close(Instant::now(), From::from(0u32), Default::default());
    }
/// Start closing the connection. A [`ConnectionEvent::ConnectionLost`] event will be
/// produced in the future.
Start closing the connection. A [`ConnectionEvent::ConnectionLost`] event will be
produced in the future.
Start closing the connection . A [ ` ConnectionEvent :: ConnectionLost ` ] event will be produced in the future .
pub(crate) fn close(&mut self) {
        // TODO: what if the user calls this multiple times?
        // We send a dummy `0` error code with no message, as the API of StreamMuxer doesn't
        // support this.
        self.connection
            .close(Instant::now(), From::from(0u32), Default::default());
    }
pub ( crate ) fn close ( & mut self ) { // TODO: what if the user calls this multiple times? // We send a dummy `0` error code with no message, as the API of StreamMuxer doesn't // support this. self . connection . close ( Instant :: now ( ) , From :: from ( 0u32 ) , Default :: default ( ) ) ; }
Start closing the connection.
Start closing the connection .
&mut self
&mut self