pub struct MiddlewareCtx<'a> {
pub session_id: &'a str,
pub state: &'a AgentState,
}Expand description
中间件可见的运行上下文(只读快照)。
Fields§
§session_id: &'a str§state: &'a AgentStateAuto Trait Implementations§
impl<'a> Freeze for MiddlewareCtx<'a>
impl<'a> RefUnwindSafe for MiddlewareCtx<'a>
impl<'a> Send for MiddlewareCtx<'a>
impl<'a> Sync for MiddlewareCtx<'a>
impl<'a> Unpin for MiddlewareCtx<'a>
impl<'a> UnsafeUnpin for MiddlewareCtx<'a>
impl<'a> UnwindSafe for MiddlewareCtx<'a>
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