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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more