pub struct Lease {
pub credential: Arc<Credential>,
pub selection: Selection,
pub execution_model: String,
pub attempt: u64,
pub lcp: Option<Match>,
/* private fields */
}Expand description
One attempt with one credential. Not cloneable: it reports exactly one outcome.
Fields§
§credential: Arc<Credential>§selection: Selection§execution_model: StringThe model key the outcome is recorded under (Go stateModelForExecution).
attempt: u64§lcp: Option<Match>The LCP binding of the pick: the attempt’s canonical session and lineage.
Implementations§
Source§impl Lease
impl Lease
Sourcepub fn is_remote(&self) -> bool
pub fn is_remote(&self) -> bool
Whether the credential came from the remote dispatcher (Go Home mode).
pub fn complete(self, outcome: Outcome)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Lease
impl !Sync for Lease
impl !UnwindSafe for Lease
impl Forget for Lease
impl Freeze for Lease
impl Move for Lease
impl Send for Lease
impl Unpin for Lease
impl UnsafeUnpin for Lease
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more