pub struct UpgradableStream<S: Stream, D: TlsDriver = Ssl> { /* private fields */ }Implementations§
Source§impl<S: Stream, D: TlsDriver> UpgradableStream<S, D>
impl<S: Stream, D: TlsDriver> UpgradableStream<S, D>
Sourcepub fn into_boxed(self) -> Result<Box<dyn Stream>, Self>
pub fn into_boxed(self) -> Result<Box<dyn Stream>, Self>
Consume the UpgradableStream and return the underlying stream as a Box<dyn Stream>.
pub fn handshake(&self) -> Option<&TlsHandshake>
Trait Implementations§
Source§impl<S: Stream, D: TlsDriver> AsyncWrite for UpgradableStream<S, D>
impl<S: Stream, D: TlsDriver> AsyncWrite for UpgradableStream<S, D>
Source§fn poll_write(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &[u8],
) -> Poll<Result<usize, Error>>
fn poll_write( self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &[u8], ) -> Poll<Result<usize, Error>>
Attempt to write bytes from
buf into the object. Read moreSource§fn poll_flush(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Error>>
fn poll_flush( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Error>>
Attempts to flush the object, ensuring that any buffered data reach
their destination. Read more
Source§fn poll_shutdown(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Error>>
fn poll_shutdown( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Error>>
Initiates or attempts to shut down this writer, returning success when
the I/O connection has completely shut down. Read more
Source§fn is_write_vectored(&self) -> bool
fn is_write_vectored(&self) -> bool
Determines if this writer has an efficient
poll_write_vectored
implementation. Read moreSource§impl<S: Stream, D: TlsDriver> Debug for UpgradableStream<S, D>where
UpgradableStreamInner<S, D>: Debug,
impl<S: Stream, D: TlsDriver> Debug for UpgradableStream<S, D>where
UpgradableStreamInner<S, D>: Debug,
Source§impl<S: Stream + Rewindable, D: TlsDriver> Rewindable for UpgradableStream<S, D>where
D::Stream: Rewindable,
impl<S: Stream + Rewindable, D: TlsDriver> Rewindable for UpgradableStream<S, D>where
D::Stream: Rewindable,
Source§impl<S: Stream, D: TlsDriver> StreamUpgrade for UpgradableStream<S, D>
impl<S: Stream, D: TlsDriver> StreamUpgrade for UpgradableStream<S, D>
Auto Trait Implementations§
impl<S, D> Freeze for UpgradableStream<S, D>
impl<S, D = NullTlsDriver> !RefUnwindSafe for UpgradableStream<S, D>
impl<S, D> Send for UpgradableStream<S, D>
impl<S, D> Sync for UpgradableStream<S, D>
impl<S, D> Unpin for UpgradableStream<S, D>
impl<S, D = NullTlsDriver> !UnwindSafe for UpgradableStream<S, D>
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