[]Struct gio::Resource

pub struct Resource(_);

Methods

impl Resource[src]

pub fn new_from_data(data: &Bytes) -> Result<Resource, Error>[src]

impl Resource[src]

pub fn enumerate_children(
    &self,
    path: &str,
    lookup_flags: ResourceLookupFlags
) -> Result<Vec<GString>, Error>
[src]

pub fn get_info(
    &self,
    path: &str,
    lookup_flags: ResourceLookupFlags
) -> Result<(usize, u32), Error>
[src]

pub fn lookup_data(
    &self,
    path: &str,
    lookup_flags: ResourceLookupFlags
) -> Result<Bytes, Error>
[src]

pub fn open_stream(
    &self,
    path: &str,
    lookup_flags: ResourceLookupFlags
) -> Result<InputStream, Error>
[src]

pub fn load<P: AsRef<Path>>(filename: P) -> Result<Resource, Error>[src]

Trait Implementations

impl Clone for Resource

impl Debug for Resource[src]

impl Eq for Resource[src]

impl Hash for Resource[src]

impl Ord for Resource[src]

impl PartialEq<Resource> for Resource[src]

impl PartialOrd<Resource> for Resource[src]

impl StaticType for Resource

impl StructuralEq for Resource[src]

impl StructuralPartialEq for Resource[src]

Auto Trait Implementations

impl RefUnwindSafe for Resource

impl !Send for Resource

impl !Sync for Resource

impl Unpin for Resource

impl UnwindSafe for Resource

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.