pub struct ControlModeUpgrade { /* private fields */ }Expand description
A detached connection that has transitioned into control-mode streaming.
Implementations§
Source§impl ControlModeUpgrade
impl ControlModeUpgrade
Sourcepub const fn response(&self) -> &ControlModeResponse
pub const fn response(&self) -> &ControlModeResponse
Returns the upgrade response sent by the server.
Sourcepub const fn mode(&self) -> ControlMode
pub const fn mode(&self) -> ControlMode
Returns the negotiated control-mode flavor.
Sourcepub fn into_stream(self) -> BlockingLocalStream
pub fn into_stream(self) -> BlockingLocalStream
Consumes the upgrade and returns the raw control-mode socket.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ControlModeUpgrade
impl RefUnwindSafe for ControlModeUpgrade
impl Send for ControlModeUpgrade
impl Sync for ControlModeUpgrade
impl Unpin for ControlModeUpgrade
impl UnsafeUnpin for ControlModeUpgrade
impl UnwindSafe for ControlModeUpgrade
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