pub struct StreamRefMutRaw<'a, S: AsFd, C: TlsSession> { /* private fields */ }Expand description
See Stream::as_mut_raw.
Implementations§
Source§impl<S: AsFd, C: TlsSession> StreamRefMutRaw<'_, S, C>
impl<S: AsFd, C: TlsSession> StreamRefMutRaw<'_, S, C>
Sourcepub fn try_io<F, R>(&mut self, f: F) -> Result<R>
pub fn try_io<F, R>(&mut self, f: F) -> Result<R>
Performs an I/O operation on the inner socket, handling possible errors
with Context::handle_io_error.
§Errors
Returns the original I/O error that is unrecoverable.
Sourcepub fn handle_io_error(&mut self, err: Error) -> Result<()>
pub fn handle_io_error(&mut self, err: Error) -> Result<()>
Trait Implementations§
Source§impl<S: AsFd, C: TlsSession> AsFd for StreamRefMutRaw<'_, S, C>
impl<S: AsFd, C: TlsSession> AsFd for StreamRefMutRaw<'_, S, C>
Source§fn as_fd(&self) -> BorrowedFd<'_>
fn as_fd(&self) -> BorrowedFd<'_>
Borrows the file descriptor. Read more
Auto Trait Implementations§
impl<'a, S, C> Freeze for StreamRefMutRaw<'a, S, C>
impl<'a, S, C> RefUnwindSafe for StreamRefMutRaw<'a, S, C>where
S: RefUnwindSafe,
C: RefUnwindSafe,
impl<'a, S, C> Send for StreamRefMutRaw<'a, S, C>
impl<'a, S, C> Sync for StreamRefMutRaw<'a, S, C>
impl<'a, S, C> Unpin for StreamRefMutRaw<'a, S, C>
impl<'a, S, C> !UnwindSafe for StreamRefMutRaw<'a, S, C>
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