pub struct Setup<'a> {
pub router: &'a mut Router,
pub config: &'a Config,
pub context: &'a mut Option<ContextBuilder>,
}Expand description
What a plugin is handed when it registers.
Fields§
§router: &'a mut Router§config: &'a Config§context: &'a mut Option<ContextBuilder>Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Setup<'a>
impl<'a> !UnwindSafe for Setup<'a>
impl<'a> Freeze for Setup<'a>
impl<'a> Send for Setup<'a>
impl<'a> Sync for Setup<'a>
impl<'a> Unpin for Setup<'a>
impl<'a> UnsafeUnpin for Setup<'a>
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