pub struct JobContext { /* private fields */ }Implementations§
Source§impl JobContext
impl JobContext
Sourcepub fn signing_keys(&self) -> Result<Arc<SigningKeys>>
pub fn signing_keys(&self) -> Result<Arc<SigningKeys>>
The keys requests sign links with, so a job’s links open the same routes.
Trait Implementations§
Source§impl Context for JobContext
A job reaches every record, as the principal whose action queued it if one did.
impl Context for JobContext
A job reaches every record, as the principal whose action queued it if one did.
Source§fn bound(&self, name: &str) -> Result<Uuid>
fn bound(&self, name: &str) -> Result<Uuid>
The framework wrote the payload, so a missing id is its fault, not a lookup’s.
fn db(&self) -> &Db
fn reach(&self) -> Reach
fn input(&mut self) -> Result<Value>
fn event(&self, name: &str) -> Result<Value>
Source§fn read(&self) -> Read
fn read(&self) -> Read
The only way a handler gets a
Read, so it never reaches further than its context.fn clock(&self) -> Clock
Source§impl<M: Mirror> Resolve<JobContext> for MirrorRow<M>
Read untyped: a pruned record’s event carries none of the fields M::Changed needs.
impl<M: Mirror> Resolve<JobContext> for MirrorRow<M>
Read untyped: a pruned record’s event carries none of the fields M::Changed needs.
Source§impl Resolve<JobContext> for MirrorPage
impl Resolve<JobContext> for MirrorPage
Source§impl Resolve<JobContext> for Prune
impl Resolve<JobContext> for Prune
impl Writes for JobContext
Auto Trait Implementations§
impl !RefUnwindSafe for JobContext
impl !UnwindSafe for JobContext
impl Forget for JobContext
impl Freeze for JobContext
impl Send for JobContext
impl Sync for JobContext
impl Unpin for JobContext
impl UnsafeUnpin for JobContext
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