pub trait File: Send + Sync {
fn readable(&self) -> bool;
fn writable(&self) -> bool;
fn read(&self, buf: UserBuffer) -> usize;
fn write(&self, buf: UserBuffer) -> usize;
}
Expand description
File trait
Required methods
fn read(&self, buf: UserBuffer) -> usize
fn read(&self, buf: UserBuffer) -> usize
Read file to UserBuffer
fn write(&self, buf: UserBuffer) -> usize
fn write(&self, buf: UserBuffer) -> usize
Write UserBuffer
to file