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 Freeze for ServerEventHandler
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