pub struct Scope<'a> { /* private fields */ }Expand description
CI identities are stable; local identities belong to one registered invocation.
A CI identity is one member of the standing pool (pool is Some), or the single
pre-pool standing set (pool is None), which no lane uses any more and which is still
recognized so the scheduled janitor can tell it apart and retire it.
Implementations§
Source§impl<'a> Scope<'a>
impl<'a> Scope<'a>
Sourcepub fn ci(team: &'a str) -> Result<Self, String>
pub fn ci(team: &'a str) -> Result<Self, String>
Validate the canonical team key of the pre-pool standing CI set.
Sourcepub fn pooled(team: &'a str, index: u8) -> Result<Self, String>
pub fn pooled(team: &'a str, index: u8) -> Result<Self, String>
Validate the team key and a member index of the standing pool, 1..=POOL_SIZE.
Sourcepub fn pool_index(self) -> Option<u8>
pub fn pool_index(self) -> Option<u8>
The pool member this standing set is, absent for a local set and the pre-pool one.
Sourcepub fn local(team: &'a str, stamp: &'a str) -> Result<Self, String>
pub fn local(team: &'a str, stamp: &'a str) -> Result<Self, String>
Validate the team key and a canonical, positively vouched local ownership stamp.
Sourcepub fn local_stamp(self) -> Option<&'a str>
pub fn local_stamp(self) -> Option<&'a str>
The validated invocation stamp, absent for the standing CI set.
Trait Implementations§
impl<'a> Copy for Scope<'a>
impl<'a> Eq for Scope<'a>
impl<'a> StructuralPartialEq for Scope<'a>
Auto Trait Implementations§
impl<'a> Forget for Scope<'a>
impl<'a> Freeze for Scope<'a>
impl<'a> Move for Scope<'a>
impl<'a> RefUnwindSafe for Scope<'a>
impl<'a> Send for Scope<'a>
impl<'a> Sync for Scope<'a>
impl<'a> Unpin for Scope<'a>
impl<'a> UnsafeUnpin for Scope<'a>
impl<'a> UnwindSafe for Scope<'a>
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