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 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
fn input(&mut self) -> Result<Value>
impl Writes for JobContext
Auto Trait Implementations§
impl !RefUnwindSafe for JobContext
impl !UnwindSafe 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