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 Ctx
impl Move for Ctx
impl RefUnwindSafe for Ctx
impl Send for Ctx
impl Sync for Ctx
impl Unpin for Ctx
impl UnsafeUnpin for Ctx
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