pub struct AttachSessionUpgrade { /* private fields */ }Expand description
A detached connection that has transitioned into attach-stream mode.
Implementations§
Source§impl AttachSessionUpgrade
impl AttachSessionUpgrade
Sourcepub const fn response(&self) -> &AttachSessionResponse
pub const fn response(&self) -> &AttachSessionResponse
Returns the upgrade response sent by the server.
Sourcepub fn into_stream(self) -> BlockingLocalStream
pub fn into_stream(self) -> BlockingLocalStream
Consumes the upgrade and returns the raw attach-stream socket.
Sourcepub fn into_parts(self) -> (BlockingLocalStream, Vec<u8>)
pub fn into_parts(self) -> (BlockingLocalStream, Vec<u8>)
Consumes the upgrade and returns the raw attach-stream socket plus any bytes already read beyond the detached response frame.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AttachSessionUpgrade
impl RefUnwindSafe for AttachSessionUpgrade
impl Send for AttachSessionUpgrade
impl Sync for AttachSessionUpgrade
impl Unpin for AttachSessionUpgrade
impl UnsafeUnpin for AttachSessionUpgrade
impl UnwindSafe for AttachSessionUpgrade
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