pub struct OnUpgradeHandle(/* private fields */);Expand description
A cloneable, takeable holder for hyper’s pending connection upgrade. The
engine inserts one into a Call’s extensions for WebSocket
handshake requests; WebSocketUpgrade takes it back out.
Implementations§
Trait Implementations§
Source§impl Clone for OnUpgradeHandle
impl Clone for OnUpgradeHandle
Source§fn clone(&self) -> OnUpgradeHandle
fn clone(&self) -> OnUpgradeHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OnUpgradeHandle
impl RefUnwindSafe for OnUpgradeHandle
impl Send for OnUpgradeHandle
impl Sync for OnUpgradeHandle
impl Unpin for OnUpgradeHandle
impl UnsafeUnpin for OnUpgradeHandle
impl UnwindSafe for OnUpgradeHandle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more