pub struct SwordServiceRegistrar {
pub name: &'static str,
pub register: fn(&Config) -> Box<dyn FnOnce(&mut dyn Any) + Send>,
pub display: fn(&Config),
}Fields§
§name: &'static str§register: fn(&Config) -> Box<dyn FnOnce(&mut dyn Any) + Send>§display: fn(&Config)Trait Implementations§
impl Collect for SwordServiceRegistrar
Auto Trait Implementations§
impl Freeze for SwordServiceRegistrar
impl RefUnwindSafe for SwordServiceRegistrar
impl Send for SwordServiceRegistrar
impl Sync for SwordServiceRegistrar
impl Unpin for SwordServiceRegistrar
impl UnsafeUnpin for SwordServiceRegistrar
impl UnwindSafe for SwordServiceRegistrar
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