pub struct Ctx {
pub modern: bool,
pub tasks: bool,
pub cancel: Arc<AtomicBool>,
pub progress: Option<Value>,
pub id: Value,
}Expand description
One request: its era and whether it may be cancelled or report progress.
Fields§
§modern: boolThe request is served statelessly under revision 2026-07-28.
tasks: boolThe client declared the Tasks extension on this request.
cancel: Arc<AtomicBool>Set when the client cancels the request.
progress: Option<Value>The request’s progress token, if it asked for progress.
id: ValueThe JSON-RPC ID of the request.
Implementations§
Auto Trait Implementations§
impl Forget for Ctx
impl Freeze for Ctxwhere
*const ArcInner<Atomic<bool>> is !null: Freeze,
PhantomData<ArcInner<Atomic<bool>>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for Ctx
impl RefUnwindSafe for Ctx
impl Send for Ctx
impl Sync for Ctx
impl Unpin for Ctx
impl UnsafeUnpin for Ctxwhere
*const ArcInner<Atomic<bool>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Atomic<bool>>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for Ctx
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