pub struct DurableIncarnationReferences<'a> { /* private fields */ }Expand description
Complete bounded live and durable connection-incarnation references.
Implementations§
Source§impl<'a> DurableIncarnationReferences<'a>
impl<'a> DurableIncarnationReferences<'a>
Sourcepub const fn try_new(
values: &'a [ConnectionIncarnation],
maximum: usize,
) -> Result<Self, DurableIncarnationReferencesError>
pub const fn try_new( values: &'a [ConnectionIncarnation], maximum: usize, ) -> Result<Self, DurableIncarnationReferencesError>
Validates the complete reference collection against its storage bound.
Duplicates are legal because one incarnation can be named by a binding, receipt, work item, and recovery row simultaneously.
§Errors
Returns DurableIncarnationReferencesError if values exceeds the
configured maximum reference count.
Sourcepub const fn as_slice(self) -> &'a [ConnectionIncarnation]
pub const fn as_slice(self) -> &'a [ConnectionIncarnation]
Returns the supplied complete reference collection.
Trait Implementations§
Source§impl<'a> Clone for DurableIncarnationReferences<'a>
impl<'a> Clone for DurableIncarnationReferences<'a>
Source§fn clone(&self) -> DurableIncarnationReferences<'a>
fn clone(&self) -> DurableIncarnationReferences<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for DurableIncarnationReferences<'a>
Source§impl<'a> Debug for DurableIncarnationReferences<'a>
impl<'a> Debug for DurableIncarnationReferences<'a>
impl<'a> Eq for DurableIncarnationReferences<'a>
Source§impl<'a> PartialEq for DurableIncarnationReferences<'a>
impl<'a> PartialEq for DurableIncarnationReferences<'a>
impl<'a> StructuralPartialEq for DurableIncarnationReferences<'a>
Auto Trait Implementations§
impl<'a> Freeze for DurableIncarnationReferences<'a>
impl<'a> RefUnwindSafe for DurableIncarnationReferences<'a>
impl<'a> Send for DurableIncarnationReferences<'a>
impl<'a> Sync for DurableIncarnationReferences<'a>
impl<'a> Unpin for DurableIncarnationReferences<'a>
impl<'a> UnsafeUnpin for DurableIncarnationReferences<'a>
impl<'a> UnwindSafe for DurableIncarnationReferences<'a>
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