pub struct Groups { /* private fields */ }Expand description
Public API gateway for the Groups subsystem.
This type is instantiated once per Network instance and is used to join
groups and manage them.
Implementations§
Source§impl Groups
Public API
impl Groups
Public API
Sourcepub fn with_key(&self, key: impl Into<GroupKey>) -> GroupBuilder<'_>
pub fn with_key(&self, key: impl Into<GroupKey>) -> GroupBuilder<'_>
Returns a builder for configuring and joining a group with the specified group key.
The group id that will be generated by the builder and joined will be
derived according to the rules described in the GroupId type
definition. All members of the group must use identical configuration
values for all the consensus-relevant parameters, otherwise they will
generate different group ids and will not be able to form a bond
connection with each other.
Auto Trait Implementations§
impl Freeze for Groups
impl !RefUnwindSafe for Groups
impl Send for Groups
impl Sync for Groups
impl Unpin for Groups
impl UnsafeUnpin for Groups
impl !UnwindSafe for Groups
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> 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