pub struct RegId(/* private fields */);Expand description
Which flow a registration is for (§4.2).
One reg-id per flow, and the same number when that flow is refreshed or re-established —
which is what tells the registrar “this replaces the binding for flow 2” rather than “here is
another contact”. §4.2 also requires the sequence to be stable across reboots, so these are
numbered from the outbound proxy set’s order rather than allocated as flows come up.
Implementations§
Source§impl RegId
impl RegId
Sourcepub fn new(value: u32) -> Option<Self>
pub fn new(value: u32) -> Option<Self>
A reg-id, if the value is one RFC 5626 §4.2 permits.
Zero is excluded by the RFC explicitly. That is not pedantry: a registrar that receives
reg-id=0 is entitled to reject the registration, and the failure looks like a
credentials problem rather than an off-by-one.
Trait Implementations§
Source§impl Ord for RegId
impl Ord for RegId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for RegId
impl PartialOrd for RegId
impl Copy for RegId
impl Eq for RegId
impl StructuralPartialEq for RegId
Auto Trait Implementations§
impl Freeze for RegId
impl RefUnwindSafe for RegId
impl Send for RegId
impl Sync for RegId
impl Unpin for RegId
impl UnsafeUnpin for RegId
impl UnwindSafe for RegId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§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