pub enum ExecutorScope {
Request,
Job,
}Expand description
Whether the ambient executor belongs to a request or a worker job. An
ORM’s Repo reads this back to fail closed when a request path lacks
an ambient authorization context (a missing principal on a worker is
expected — it’s system work; on a request it’s a bug).
Variants§
Request
A user request — a missing ambient ability is a bug, so Repo fails closed.
Job
System work (cron/queue) — no principal is expected, so reads are unscoped.
Trait Implementations§
Source§impl Clone for ExecutorScope
impl Clone for ExecutorScope
Source§fn clone(&self) -> ExecutorScope
fn clone(&self) -> ExecutorScope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ExecutorScope
Source§impl Debug for ExecutorScope
impl Debug for ExecutorScope
impl Eq for ExecutorScope
Source§impl PartialEq for ExecutorScope
impl PartialEq for ExecutorScope
impl StructuralPartialEq for ExecutorScope
Auto Trait Implementations§
impl Freeze for ExecutorScope
impl RefUnwindSafe for ExecutorScope
impl Send for ExecutorScope
impl Sync for ExecutorScope
impl Unpin for ExecutorScope
impl UnsafeUnpin for ExecutorScope
impl UnwindSafe for ExecutorScope
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