/// Returns a pair of upgrade handles.
///
/// Each handle is used to insert 1 half of the upgrade. When both handles
/// have inserted, the upgrade future will be spawned onto the executor.
Returns a pair of upgrade handles.
Each handle is used to insert 1 half of the upgrade. When both handles
have inserted, the upgrade future will be spawned onto the executor.
Returns a pair of upgrade handles . Each handle is used to insert 1 half of the upgrade . When both handles have inserted the upgrade future will be spawned onto the executor .
pub fn halves(upgrade_drain_signal: drain::Watch) -> Http11UpgradeHalves {
        let inner = Arc::new(Inner {
            server: TryLock::new(None),
            client: TryLock::new(None),
            upgrade_drain_signal: Some(upgrade_drain_signal),
        });
        Http11UpgradeHalves {
            server: Http11Upgrade {
                half: Half::Server,
                inner: inner.clone(),
            },
            client: Http11Upgrade {
                half: Half::Client,
                inner,
            },
        }
    }
pub fn halves ( upgrade_drain_signal : drain :: Watch ) -> Http11UpgradeHalves { let inner = Arc :: new ( Inner { server : TryLock :: new ( None ) , client : TryLock :: new ( None ) , upgrade_drain_signal : Some ( upgrade_drain_signal ) , } ) ; Http11UpgradeHalves { server : Http11Upgrade { half : Half :: Server , inner : inner . clone ( ) , } , client : Http11Upgrade { half : Half :: Client , inner , } , } }
Returns a pair of upgrade handles.
Returns a pair of upgrade handles .
upgrade_drain_signal
drain::Watch