Struct async_fd_lock::RwLockReadGuard
source · pub struct RwLockReadGuard<T: AsOpenFile> { /* private fields */ }
Expand description
Implementations§
Trait Implementations§
source§impl<T: AsOpenFile + AsyncRead> AsyncRead for RwLockReadGuard<T>
impl<T: AsOpenFile + AsyncRead> AsyncRead for RwLockReadGuard<T>
Delegate AsyncRead
to the inner file.
source§impl<T: Debug + AsOpenFile> Debug for RwLockReadGuard<T>
impl<T: Debug + AsOpenFile> Debug for RwLockReadGuard<T>
source§impl<T: AsOpenFile> Drop for RwLockReadGuard<T>
impl<T: AsOpenFile> Drop for RwLockReadGuard<T>
source§impl<T: AsOpenFile + Read> Read for RwLockReadGuard<T>
impl<T: AsOpenFile + Read> Read for RwLockReadGuard<T>
Delegate Read
to the inner file.
source§fn read(&mut self, buf: &mut [u8]) -> Result<usize>
fn read(&mut self, buf: &mut [u8]) -> Result<usize>
Pull some bytes from this source into the specified buffer, returning
how many bytes were read. Read more
source§fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> Result<usize>
fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> Result<usize>
Like
read
, except that it reads into a slice of buffers. Read moresource§fn read_to_end(&mut self, buf: &mut Vec<u8>) -> Result<usize>
fn read_to_end(&mut self, buf: &mut Vec<u8>) -> Result<usize>
Read all bytes until EOF in this source, placing them into
buf
. Read moresource§fn read_to_string(&mut self, buf: &mut String) -> Result<usize>
fn read_to_string(&mut self, buf: &mut String) -> Result<usize>
Read all bytes until EOF in this source, appending them to
buf
. Read moresource§fn read_exact(&mut self, buf: &mut [u8]) -> Result<()>
fn read_exact(&mut self, buf: &mut [u8]) -> Result<()>
Read the exact number of bytes required to fill
buf
. Read moresource§fn by_ref(&mut self) -> &mut Selfwhere
Self: Sized,
fn by_ref(&mut self) -> &mut Selfwhere
Self: Sized,
Creates a “by reference” adaptor for this instance of
Read
. Read moresource§fn is_read_vectored(&self) -> bool
fn is_read_vectored(&self) -> bool
🔬This is a nightly-only experimental API. (
can_vector
)source§fn read_buf(&mut self, buf: BorrowedCursor<'_>) -> Result<(), Error>
fn read_buf(&mut self, buf: BorrowedCursor<'_>) -> Result<(), Error>
🔬This is a nightly-only experimental API. (
read_buf
)Pull some bytes from this source into the specified buffer. Read more
source§fn read_buf_exact(&mut self, cursor: BorrowedCursor<'_>) -> Result<(), Error>
fn read_buf_exact(&mut self, cursor: BorrowedCursor<'_>) -> Result<(), Error>
🔬This is a nightly-only experimental API. (
read_buf
)Read the exact number of bytes required to fill
cursor
. Read moreimpl<'pin, T: AsOpenFile> Unpin for RwLockReadGuard<T>where
__RwLockReadGuard<'pin, T>: Unpin,
Auto Trait Implementations§
impl<T> Freeze for RwLockReadGuard<T>where
T: Freeze,
impl<T> RefUnwindSafe for RwLockReadGuard<T>where
T: RefUnwindSafe,
impl<T> Send for RwLockReadGuard<T>where
T: Send,
impl<T> Sync for RwLockReadGuard<T>where
T: Sync,
impl<T> UnwindSafe for RwLockReadGuard<T>where
T: UnwindSafe,
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