[][src]Struct pixel_widgets::loader::FsLoader

pub struct FsLoader { /* fields omitted */ }

Load file from the filesystem

Implementations

impl FsLoader[src]

pub fn new(base: PathBuf) -> Result<Self, Error>[src]

Construct a new FsLoader with the given base path

Trait Implementations

impl Loader for FsLoader[src]

type Load = Ready<Result<Vec<u8>, Self::Error>>

A future returned when calling load.

type Wait = Map<Receiver<Result<(), Self::Error>>, fn(_: Result<Result<(), Self::Error>, Canceled>) -> Result<(), Self::Error>>

A future returned when calling wait.

type Error = Error

Error returned by the loader when the request failed.

Auto Trait Implementations

Blanket Implementations

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

impl<T> Any for T where
    T: Any

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> Instrument for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

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.