pub enum Routine {
WithoutContext(Rc<dyn Fn((Args, Props)) -> Result<()>>),
WithContext(Rc<dyn Fn((Args, Props), Context) -> Result<()>>),
}Expand description
Represents different types of routines.
WithoutContext: A routine that does not require any context.WithContext: A routine that requires a context.
Variants§
WithoutContext(Rc<dyn Fn((Args, Props)) -> Result<()>>)
Routine without context
WithContext(Rc<dyn Fn((Args, Props), Context) -> Result<()>>)
Routine with context
Implementations§
Trait Implementations§
source§impl PartialEq for Routine
impl PartialEq for Routine
impl Eq for Routine
Auto Trait Implementations§
impl Freeze for Routine
impl !RefUnwindSafe for Routine
impl !Send for Routine
impl !Sync for Routine
impl Unpin for Routine
impl !UnwindSafe for Routine
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
source§impl<S> SetWithType for S
impl<S> SetWithType for S
source§fn set_with_type<T, IntoT>(&mut self, component: IntoT)where
IntoT: Into<T>,
S: SetComponent<T, IntoT>,
fn set_with_type<T, IntoT>(&mut self, component: IntoT)where
IntoT: Into<T>,
S: SetComponent<T, IntoT>,
Function to set value of a component by its type.