pub struct Component {
name: String,
execute: Box<dyn Fn(&Context) -> Result<(), Error>>,
function_name: &'static str,
}Fields
name: Stringexecute: Box<dyn Fn(&Context) -> Result<(), Error>>function_name: &'static strImplementations
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Component
impl !Send for Component
impl !Sync for Component
impl Unpin for Component
impl !UnwindSafe for Component
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more