pub struct ArrayEditor { /* private fields */ }
Expand description
A random-access input source and output sink.
Implementations§
Trait Implementations§
Source§impl Array for &ArrayEditor
impl Array for &ArrayEditor
Source§impl Array for ArrayEditor
impl Array for ArrayEditor
Source§impl AsHandle for ArrayEditor
impl AsHandle for ArrayEditor
Source§fn as_handle(&self) -> BorrowedHandle<'_>
fn as_handle(&self) -> BorrowedHandle<'_>
Borrows the handle. Read more
Source§impl AsRawHandle for ArrayEditor
impl AsRawHandle for ArrayEditor
Source§fn as_raw_handle(&self) -> RawHandle
fn as_raw_handle(&self) -> RawHandle
Extracts the raw handle. Read more
Source§impl AsRawHandleOrSocket for ArrayEditor
impl AsRawHandleOrSocket for ArrayEditor
Source§fn as_raw_handle_or_socket(&self) -> RawHandleOrSocket
fn as_raw_handle_or_socket(&self) -> RawHandleOrSocket
Like
AsRawHandle::as_raw_handle
and AsRawSocket::as_raw_socket
but can return either type.Source§impl Debug for ArrayEditor
impl Debug for ArrayEditor
Source§impl ReadAt for ArrayEditor
impl ReadAt for ArrayEditor
Source§fn read_at(&self, buf: &mut [u8], offset: u64) -> Result<usize>
fn read_at(&self, buf: &mut [u8], offset: u64) -> Result<usize>
Reads a number of bytes starting from a given offset. Read more
Source§fn read_exact_at(&self, buf: &mut [u8], offset: u64) -> Result<()>
fn read_exact_at(&self, buf: &mut [u8], offset: u64) -> Result<()>
Reads the exact number of byte required to fill
buf
from the given
offset. Read moreSource§fn read_vectored_at(
&self,
bufs: &mut [IoSliceMut<'_>],
offset: u64,
) -> Result<usize>
fn read_vectored_at( &self, bufs: &mut [IoSliceMut<'_>], offset: u64, ) -> Result<usize>
Is to
read_vectored
what read_at
is to read
.Source§fn read_exact_vectored_at(
&self,
bufs: &mut [IoSliceMut<'_>],
offset: u64,
) -> Result<()>
fn read_exact_vectored_at( &self, bufs: &mut [IoSliceMut<'_>], offset: u64, ) -> Result<()>
Is to
read_exact_vectored
what read_exact_at
is to read_exact
.Source§fn is_read_vectored_at(&self) -> bool
fn is_read_vectored_at(&self) -> bool
Determines if
Self
has an efficient read_vectored_at
implementation.Source§fn read_via_stream_at(&self, offset: u64) -> Result<StreamReader>
fn read_via_stream_at(&self, offset: u64) -> Result<StreamReader>
Create a
StreamReader
which reads from the array at the given offset.Source§impl WriteAt for &ArrayEditor
impl WriteAt for &ArrayEditor
Source§fn write_at(&mut self, buf: &[u8], offset: u64) -> Result<usize>
fn write_at(&mut self, buf: &[u8], offset: u64) -> Result<usize>
Writes a number of bytes starting from a given offset. Read more
Source§fn write_all_at(&mut self, buf: &[u8], offset: u64) -> Result<()>
fn write_all_at(&mut self, buf: &[u8], offset: u64) -> Result<()>
Attempts to write an entire buffer starting from a given offset. Read more
Source§fn write_vectored_at(
&mut self,
bufs: &[IoSlice<'_>],
offset: u64,
) -> Result<usize>
fn write_vectored_at( &mut self, bufs: &[IoSlice<'_>], offset: u64, ) -> Result<usize>
Is to
write_vectored
what write_at
is to write
.Source§fn write_all_vectored_at(
&mut self,
bufs: &mut [IoSlice<'_>],
offset: u64,
) -> Result<()>
fn write_all_vectored_at( &mut self, bufs: &mut [IoSlice<'_>], offset: u64, ) -> Result<()>
Is to
write_all_vectored
what write_all_at
is to write_all
.Source§fn is_write_vectored_at(&self) -> bool
fn is_write_vectored_at(&self) -> bool
Determines if
Self
has an efficient write_vectored_at
implementation.Source§impl WriteAt for ArrayEditor
impl WriteAt for ArrayEditor
Source§fn write_at(&mut self, buf: &[u8], offset: u64) -> Result<usize>
fn write_at(&mut self, buf: &[u8], offset: u64) -> Result<usize>
Writes a number of bytes starting from a given offset. Read more
Source§fn write_all_at(&mut self, buf: &[u8], offset: u64) -> Result<()>
fn write_all_at(&mut self, buf: &[u8], offset: u64) -> Result<()>
Attempts to write an entire buffer starting from a given offset. Read more
Source§fn write_vectored_at(
&mut self,
bufs: &[IoSlice<'_>],
offset: u64,
) -> Result<usize>
fn write_vectored_at( &mut self, bufs: &[IoSlice<'_>], offset: u64, ) -> Result<usize>
Is to
write_vectored
what write_at
is to write
.Source§fn write_all_vectored_at(
&mut self,
bufs: &mut [IoSlice<'_>],
offset: u64,
) -> Result<()>
fn write_all_vectored_at( &mut self, bufs: &mut [IoSlice<'_>], offset: u64, ) -> Result<()>
Is to
write_all_vectored
what write_all_at
is to write_all
.Source§fn is_write_vectored_at(&self) -> bool
fn is_write_vectored_at(&self) -> bool
Determines if
Self
has an efficient write_vectored_at
implementation.Auto Trait Implementations§
impl Freeze for ArrayEditor
impl RefUnwindSafe for ArrayEditor
impl Send for ArrayEditor
impl Sync for ArrayEditor
impl Unpin for ArrayEditor
impl UnwindSafe for ArrayEditor
Blanket Implementations§
Source§impl<T> AsFilelike for Twhere
T: AsHandle,
impl<T> AsFilelike for Twhere
T: AsHandle,
Source§fn as_filelike(&self) -> BorrowedHandle<'_>
fn as_filelike(&self) -> BorrowedHandle<'_>
Borrows the reference. Read more
Source§fn as_filelike_view<Target>(&self) -> FilelikeView<'_, Target>where
Target: FilelikeViewType,
fn as_filelike_view<Target>(&self) -> FilelikeView<'_, Target>where
Target: FilelikeViewType,
Return a borrowing view of a resource which dereferences to a
&Target
. Read moreSource§impl<T> AsRawFilelike for Twhere
T: AsRawHandle,
impl<T> AsRawFilelike for Twhere
T: AsRawHandle,
Source§fn as_raw_filelike(&self) -> *mut c_void
fn as_raw_filelike(&self) -> *mut c_void
Returns the raw value.
Source§impl<T> AsRawGrip for Twhere
T: AsRawHandleOrSocket,
impl<T> AsRawGrip for Twhere
T: AsRawHandleOrSocket,
Source§fn as_raw_grip(&self) -> RawHandleOrSocket
fn as_raw_grip(&self) -> RawHandleOrSocket
Extracts the raw grip.
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
Source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self
file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike + FromFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike + FromFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
Set the “status” flags for the
self
file descriptor. Read more