pub enum InertiaProp {
Data(Value),
Lazy(Arc<dyn Fn() -> Value + Send + Sync>),
Always(Value),
Demand(Arc<dyn Fn() -> Value + Send + Sync>),
}
Variants§
Data(Value)
- ALWAYS included on standard visits
- OPTIONALLY included on partial reloads
- ALWAYS evaluated
Lazy(Arc<dyn Fn() -> Value + Send + Sync>)
- ALWAYS included on standard visits
- OPTIONALLY included on partial reloads
- ONLY evaluated when included
Always(Value)
- ALWAYS included on standard visits
- ALWAYS included on partial reloads (even if not requested or excepted)
- ALWAYS evaluated
Demand(Arc<dyn Fn() -> Value + Send + Sync>)
- NEVER included on standard visits
- OPTIONALLY included on partial reloads
- ONLY evaluated when needed
Trait Implementations§
Source§impl Clone for InertiaProp
impl Clone for InertiaProp
Source§fn clone(&self) -> InertiaProp
fn clone(&self) -> InertiaProp
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for InertiaProp
impl !RefUnwindSafe for InertiaProp
impl Send for InertiaProp
impl Sync for InertiaProp
impl Unpin for InertiaProp
impl !UnwindSafe for InertiaProp
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more