pub struct HandlerGeneric<T>{
pub id: u32,
pub name: &'static str,
pub js: String,
pub ts: String,
pub func: Box<Handler<T>>,
}Expand description
Generic handler struct that wraps a user-defined handler function.
Contains a handler ID, name, JS request code, TS request code, and the processing function.
Fields§
§id: u32Unique handler ID
name: &'static strHandler name
js: StringJS client
ts: StringTS client
func: Box<Handler<T>>Actual processing function
Auto Trait Implementations§
impl<T> Freeze for HandlerGeneric<T>
impl<T> !RefUnwindSafe for HandlerGeneric<T>
impl<T> Send for HandlerGeneric<T>
impl<T> Sync for HandlerGeneric<T>
impl<T> Unpin for HandlerGeneric<T>
impl<T> !UnwindSafe for HandlerGeneric<T>
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