pub struct RandomAccessFileImpl { /* private fields */ }Expand description
Implementations§
Source§impl RandomAccessFileImpl
impl RandomAccessFileImpl
pub fn new(file: *mut FileState) -> RandomAccessFileImpl
Trait Implementations§
Source§impl Drop for RandomAccessFileImpl
impl Drop for RandomAccessFileImpl
Source§impl GetName for RandomAccessFileImpl
impl GetName for RandomAccessFileImpl
Source§impl RandomAccessFileRead for RandomAccessFileImpl
impl RandomAccessFileRead for RandomAccessFileImpl
Source§fn read(
&self,
offset: u64,
n: usize,
result: *mut Slice,
scratch: *mut u8,
) -> Status
fn read( &self, offset: u64, n: usize, result: *mut Slice, scratch: *mut u8, ) -> Status
| Read up to “n” bytes from the file starting
| at “offset”. “scratch[0..n-1]” may be
| written by this routine. Sets “*result” to
| the data that was read (including if fewer
| than “n” bytes were successfully read). May
| set “*result” to point at data in
| “scratch[0..n-1]”, so “scratch[0..n-1]” must
| be live when “*result” is used. If an error
| was encountered, returns a non-OK status.
|
| Safe for concurrent use by multiple threads.
impl RandomAccessFile for RandomAccessFileImpl
Auto Trait Implementations§
impl Freeze for RandomAccessFileImpl
impl !RefUnwindSafe for RandomAccessFileImpl
impl !Send for RandomAccessFileImpl
impl !Sync for RandomAccessFileImpl
impl Unpin for RandomAccessFileImpl
impl !UnwindSafe for RandomAccessFileImpl
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