pub struct Foundations { /* private fields */ }Expand description
Allocates foundations over the candidates as they are gathered (§5.1.1.3).
Implementations§
Source§impl Foundations
impl Foundations
Sourcepub fn assign(
&mut self,
candidate: &Gathered,
transport: Transport,
) -> LocalFoundation
pub fn assign( &mut self, candidate: &Gathered, transport: Transport, ) -> LocalFoundation
The foundation for a gathered candidate: the counter already allocated to its tuple, or the next one.
Sourcepub fn learn_remote(&mut self) -> RemoteFoundation
pub fn learn_remote(&mut self) -> RemoteFoundation
The next foundation for a peer-reflexive remote candidate (§7.3.1.3): “an arbitrary value, different from the foundations of all other remote candidates”.
Trait Implementations§
Source§impl Debug for Foundations
impl Debug for Foundations
Source§impl Default for Foundations
impl Default for Foundations
Source§fn default() -> Foundations
fn default() -> Foundations
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Foundations
impl RefUnwindSafe for Foundations
impl Send for Foundations
impl Sync for Foundations
impl Unpin for Foundations
impl UnsafeUnpin for Foundations
impl UnwindSafe for Foundations
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