pub struct BeforeStart(pub Arc<dyn Fn(&Client, &str) -> Result<()> + Send + Sync>);Expand description
See Desired::before_start: called with the instance’s name.
Tuple Fields§
§0: Arc<dyn Fn(&Client, &str) -> Result<()> + Send + Sync>Trait Implementations§
Source§impl Clone for BeforeStart
impl Clone for BeforeStart
Auto Trait Implementations§
impl !RefUnwindSafe for BeforeStart
impl !UnwindSafe for BeforeStart
impl Freeze for BeforeStart
impl Send for BeforeStart
impl Sync for BeforeStart
impl Unpin for BeforeStart
impl UnsafeUnpin for BeforeStart
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