pub struct DelegationContext {
pub registry: Arc<DelegationRegistry>,
pub session: String,
pub depth: u32,
}Expand description
The registry and parent session that delegated runs are recorded under.
Fields§
§registry: Arc<DelegationRegistry>§session: String§depth: u32Delegation depth the session’s client declared (0 for a direct client). Runs count from the larger of this and the process’s own.
Implementations§
Source§impl DelegationContext
impl DelegationContext
Sourcepub fn owner_depth(&self) -> u32
pub fn owner_depth(&self) -> u32
The depth delegated runs of this session start from.
Trait Implementations§
Source§impl Clone for DelegationContext
impl Clone for DelegationContext
Auto Trait Implementations§
impl Freeze for DelegationContext
impl RefUnwindSafe for DelegationContext
impl Send for DelegationContext
impl Sync for DelegationContext
impl Unpin for DelegationContext
impl UnsafeUnpin for DelegationContext
impl UnwindSafe for DelegationContext
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