Struct kernel::schemes::file::FileResource [] [src]

pub struct FileResource {
    pub scheme: *mut FileScheme,
    pub node: Node,
    pub vec: Vec<u8>,
    pub seek: usize,
    pub dirty: bool,
}

A file resource

Fields

scheme
node
vec
seek
dirty

Trait Implementations

impl Resource for FileResource

fn dup(&self) -> Option<Box<Resource>>

fn url(&self) -> URL

fn read(&mut self, buf: &mut [u8]) -> Option<usize>

fn write(&mut self, buf: &[u8]) -> Option<usize>

fn seek(&mut self, pos: ResourceSeek) -> Option<usize>

fn sync(&mut self) -> bool

fn truncate(&mut self, len: usize) -> bool

fn read_to_end(&mut self, vec: &mut Vec<u8>) -> Option<usize>

impl Drop for FileResource

fn drop(&mut self)