Struct amethyst_assets::HotReloadStrategy
source · pub struct HotReloadStrategy { /* private fields */ }
Expand description
An ECS resource which allows to configure hot reloading.
Examples
let mut world = World::new();
// Assets will be reloaded every two seconds (in case they changed)
world.add_resource(HotReloadStrategy::every(2));
Implementations
sourceimpl HotReloadStrategy
impl HotReloadStrategy
sourcepub fn when_triggered() -> Self
pub fn when_triggered() -> Self
This allows to use trigger
for hot reloading.
Trait Implementations
sourceimpl Clone for HotReloadStrategy
impl Clone for HotReloadStrategy
sourcefn clone(&self) -> HotReloadStrategy
fn clone(&self) -> HotReloadStrategy
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for HotReloadStrategy
impl Send for HotReloadStrategy
impl Sync for HotReloadStrategy
impl Unpin for HotReloadStrategy
impl UnwindSafe for HotReloadStrategy
Blanket Implementations
impl<T> Any for Twhere
T: Any,
impl<T> Any for Twhere
T: Any,
fn get_type_id(&self) -> TypeId
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read morefn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.impl<T> TryDefault for Twhere
T: Default,
impl<T> TryDefault for Twhere
T: Default,
fn try_default() -> Result<T, String>
fn try_default() -> Result<T, String>
Tries to create the default.
fn unwrap_default() -> Self
fn unwrap_default() -> Self
Calls
try_default
and panics on an error case.