pub struct Handler<I, O>(/* private fields */);Expand description
Routine handle.
let routine = Routine::new
(
|( args, props )|
{
// Do what you need to do
Ok( () )
}
);let routine = Routine::new_with_ctx
(
| ( args, props ), ctx |
{
// Do what you need to do
Ok( () )
}
);Trait Implementations§
Auto Trait Implementations§
impl<I, O> Freeze for Handler<I, O>
impl<I, O> !RefUnwindSafe for Handler<I, O>
impl<I, O> !Send for Handler<I, O>
impl<I, O> !Sync for Handler<I, O>
impl<I, O> Unpin for Handler<I, O>
impl<I, O> !UnwindSafe for Handler<I, O>
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.