Struct gio::Resource
[−]
pub struct Resource(_);
Methods
impl Resource
[src]
fn new_from_data(data: &Bytes) -> Result<Resource, Error>
fn enumerate_children(
&self,
path: &str,
lookup_flags: ResourceLookupFlags
) -> Result<Vec<String>, Error>
&self,
path: &str,
lookup_flags: ResourceLookupFlags
) -> Result<Vec<String>, Error>
fn get_info(
&self,
path: &str,
lookup_flags: ResourceLookupFlags
) -> Result<(usize, u32), Error>
&self,
path: &str,
lookup_flags: ResourceLookupFlags
) -> Result<(usize, u32), Error>
fn lookup_data(
&self,
path: &str,
lookup_flags: ResourceLookupFlags
) -> Result<Bytes, Error>
&self,
path: &str,
lookup_flags: ResourceLookupFlags
) -> Result<Bytes, Error>
fn load<P: AsRef<Path>>(filename: P) -> Result<Resource, Error>
Trait Implementations
impl Clone for Resource
fn clone(&self) -> Resource
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more