[][src]Struct reinda::Info

pub struct Info<'a> { /* fields omitted */ }

Contains meta information about an asset.

Implementations

impl<'a> Info<'a>[src]

pub fn original_path(&self) -> &'static str[src]

Returns the original path specified in the assets! invocation.

pub fn public_path(&self) -> &'a str[src]

Returns the public path, which might be the same as original_path or might contain a hash if hash was specified in assets! for this asset.

pub fn is_served(&self) -> bool[src]

Returns whether or not this asset is publicly served. Equals the serve specification in the assets! macro.

pub fn is_dynamic(&self) -> bool[src]

Returns whether this asset is always loaded at runtime (either at startup or when requested) as opposed to being embeded. Equals the dynamic specification in the assets! macro.

pub fn is_filename_hashed(&self) -> bool[src]

Returns whether this asset's filename currently (in this compilation mode) includes a hash of the asset's content. In dev mode, this always returns false; in prod mode, this returns true if hash was specified in assets!.

Trait Implementations

impl<'a> Debug for Info<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Info<'a>[src]

impl<'a> Send for Info<'a>[src]

impl<'a> Sync for Info<'a>[src]

impl<'a> Unpin for Info<'a>[src]

impl<'a> UnwindSafe for Info<'a>[src]

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<T> Same<T> for T

type Output = T

Should always be Self

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.