pub enum ServerEventHandler {
RuleChanged(fn(_: &Context, _: ServerRole)),
Loading(fn(_: &Context, _: LoadingSubevent)),
Flush(fn(_: &Context, _: FlushSubevent)),
ModuleChange(fn(_: &Context, _: ModuleChangeSubevent)),
}
Variants§
RuleChanged(fn(_: &Context, _: ServerRole))
Loading(fn(_: &Context, _: LoadingSubevent))
Flush(fn(_: &Context, _: FlushSubevent))
ModuleChange(fn(_: &Context, _: ModuleChangeSubevent))
Trait Implementations§
source§impl Clone for ServerEventHandler
impl Clone for ServerEventHandler
source§fn clone(&self) -> ServerEventHandler
fn clone(&self) -> ServerEventHandler
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for ServerEventHandler
impl Send for ServerEventHandler
impl Sync for ServerEventHandler
impl Unpin for ServerEventHandler
impl UnwindSafe for ServerEventHandler
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