pub struct UnixIO { /* private fields */ }Expand description
UnixIO lives longer than any of the files it creates, so it is safe to store references to it’s internals in the UnixFiles
Implementations§
Trait Implementations§
Source§impl IO for UnixIO
impl IO for UnixIO
fn open_file( &self, path: &str, flags: OpenFlags, _direct: bool, ) -> Result<Arc<dyn File>>
fn run_once(&self) -> Result<()>
fn wait_for_completion(&self, c: Arc<Completion>) -> Result<()>
fn generate_random_number(&self) -> i64
fn get_memory_io(&self) -> Arc<MemoryIO> ⓘ
impl Send for UnixIO
impl Sync for UnixIO
Auto Trait Implementations§
impl !Freeze for UnixIO
impl !RefUnwindSafe for UnixIO
impl !UnwindSafe for UnixIO
impl Unpin for UnixIO
impl UnsafeUnpin for UnixIO
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