pub struct SetId(/* private fields */);Expand description
Identifier of a set in the peerset.
Can be constructed using the From<usize> trait implementation based on the index of the set
within PeersetConfig::sets. For example, the first element of PeersetConfig::sets is
later referred to with SetId::from(0). It is intended that the code responsible for building
the PeersetConfig is also responsible for constructing the SetIds.
Implementations§
Trait Implementations§
Source§impl Ord for SetId
impl Ord for SetId
Source§impl PartialOrd for SetId
impl PartialOrd for SetId
impl Copy for SetId
impl Eq for SetId
impl StructuralPartialEq for SetId
Auto Trait Implementations§
impl Freeze for SetId
impl RefUnwindSafe for SetId
impl Send for SetId
impl Sync for SetId
impl Unpin for SetId
impl UnwindSafe for SetId
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,
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