pub struct HookContext<State: Clone + Serialize> {
pub session_id: Option<Uuid>,
pub new_checkpoint_id: Option<Uuid>,
pub request_id: Uuid,
pub state: State,
/* private fields */
}Fields§
§session_id: Option<Uuid>§new_checkpoint_id: Option<Uuid>§request_id: Uuid§state: StateImplementations§
Source§impl<State: Clone + Serialize> HookContext<State>
impl<State: Clone + Serialize> HookContext<State>
pub fn new(session_id: Option<Uuid>, state: State) -> Self
pub fn set_session_id(&mut self, session_id: Uuid)
pub fn set_new_checkpoint_id(&mut self, new_checkpoint_id: Uuid)
Trait Implementations§
Auto Trait Implementations§
impl<State> Freeze for HookContext<State>where
State: Freeze,
impl<State> !RefUnwindSafe for HookContext<State>
impl<State> Send for HookContext<State>where
State: Send,
impl<State> Sync for HookContext<State>where
State: Sync,
impl<State> Unpin for HookContext<State>where
State: Unpin,
impl<State> !UnwindSafe for HookContext<State>
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