pub struct HookInfo {
pub name: &'static str,
pub point: &'static str,
pub settings: &'static [&'static str],
pub check: fn(&Table) -> Result<(), String>,
}Expand description
A hook this build knows by name.
Fields§
§name: &'static str§point: &'static strThe loop point it is wired at, as config show prints it.
settings: &'static [&'static str]The keys its [hooks.<name>] table accepts. Empty: it takes no settings.
check: fn(&Table) -> Result<(), String>Checks the values of a settings table whose keys are already known to be valid.
Auto Trait Implementations§
impl Forget for HookInfo
impl Freeze for HookInfo
impl Move for HookInfo
impl RefUnwindSafe for HookInfo
impl Send for HookInfo
impl Sync for HookInfo
impl Unpin for HookInfo
impl UnsafeUnpin for HookInfo
impl UnwindSafe for HookInfo
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