pub struct Attempt {
pub reg_id: RegId,
pub flow_accepted: bool,
pub outcome: Result<Lease>,
pub retry_after: Option<Duration>,
}Expand description
What one flow’s registration attempt produced.
Fields§
§reg_id: RegIdWhich flow.
flow_accepted: boolWhether the registrar reported an Outbound registration (RFC 5626 §6).
outcome: Result<Lease>The lease, or why there is none.
retry_after: Option<Duration>How long to wait before retrying, when this attempt failed (RFC 5626 §4.5).
None on success. Computed with the whole set in view, because §4.5’s base interval
depends on whether any flow is still up: 30 seconds when none is, 90 when one is.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Attempt
impl !RefUnwindSafe for Attempt
impl Send for Attempt
impl Sync for Attempt
impl Unpin for Attempt
impl UnsafeUnpin for Attempt
impl !UnwindSafe for Attempt
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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