Struct asset_store::IoStore
[-]
[+]
[src]
pub struct IoStore<Backend> { // some fields omitted }
pub struct IoStore<Backend> { // some fields omitted }
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>
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
, enum
,
trait
, typedef
(or
tdef
).