Struct asset_store::IoStore [-]  [+] [src]

pub struct IoStore<Backend> {
    // some fields omitted
}

Trait Implementations

impl<B: IoBackend> AssetStore<IoError> for IoStore<B>

fn load(&self, path: &str)

fn is_loaded(&self, path: &str) -> Result<bool, IoError>

fn unload(&self, path: &str)

fn unload_everything(&self)

fn map_resource<O>(&self, path: &str, mapfn: |&[u8]| -> O) -> IoResult<Option<O>>

fn map_resource_block<O>(&self, path: &str, mapfn: |&[u8]| -> O) -> IoResult<O>

fn load_all<'a, I: Iterator<&'a str>>(&self, paths: I)

fn all_loaded<'a, I: Iterator<&'a str>>(&self, paths: I) -> Result<bool, Vec<(&'a str, E)>>

fn unload_all<'a, I: Iterator<&'a str>>(&self, paths: I)

fn with_bytes(&self, path: &str, with_fn: |&[u8]|) -> Result<Option<()>, E>

fn with_bytes_block(&self, path: &str, with_fn: |&[u8]|) -> Result<(), E>