pub struct SyncStateSet(/* private fields */);Expand description
A non-empty set of non-negative broker identifiers.
Implementations§
Source§impl SyncStateSet
impl SyncStateSet
Sourcepub fn try_new(
members: impl IntoIterator<Item = i64>,
) -> Result<Self, StoreContractViolation>
pub fn try_new( members: impl IntoIterator<Item = i64>, ) -> Result<Self, StoreContractViolation>
Creates a validated, de-duplicated sync-state set.
§Errors
Returns a typed error when the set is empty or contains a negative broker identifier.
Trait Implementations§
Source§impl Clone for SyncStateSet
impl Clone for SyncStateSet
Source§impl Debug for SyncStateSet
impl Debug for SyncStateSet
impl Eq for SyncStateSet
Source§impl PartialEq for SyncStateSet
impl PartialEq for SyncStateSet
impl StructuralPartialEq for SyncStateSet
Auto Trait Implementations§
impl Forget for SyncStateSet
impl Freeze for SyncStateSetwhere
*const LeafNode<i64, SetValZST> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(i64, SetValZST)>>: Freeze,
impl Move for SyncStateSet
impl RefUnwindSafe for SyncStateSet
impl Send for SyncStateSet
impl Sync for SyncStateSet
impl Unpin for SyncStateSet
impl UnsafeUnpin for SyncStateSetwhere
*const LeafNode<i64, SetValZST> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(i64, SetValZST)>>: UnsafeUnpin,
impl UnwindSafe for SyncStateSet
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