pub struct QueueState { /* private fields */ }Expand description
Validated queue configuration and lifecycle snapshot.
Implementations§
Source§impl QueueState
impl QueueState
Sourcepub const fn unconfigured(max_size: QueueSize, epoch: QueueEpoch) -> Self
pub const fn unconfigured(max_size: QueueSize, epoch: QueueEpoch) -> Self
Construct an unconfigured queue state.
Sourcepub const fn new(
max_size: QueueSize,
size: Option<QueueSize>,
ready: bool,
epoch: QueueEpoch,
) -> Result<Self, QueueConfigError>
pub const fn new( max_size: QueueSize, size: Option<QueueSize>, ready: bool, epoch: QueueEpoch, ) -> Result<Self, QueueConfigError>
Construct and validate a queue-state snapshot.
Sourcepub const fn epoch(self) -> QueueEpoch
pub const fn epoch(self) -> QueueEpoch
Current reset epoch.
Trait Implementations§
Source§impl Clone for QueueState
impl Clone for QueueState
Source§fn clone(&self) -> QueueState
fn clone(&self) -> QueueState
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 Copy for QueueState
Source§impl Debug for QueueState
impl Debug for QueueState
impl Eq for QueueState
Source§impl PartialEq for QueueState
impl PartialEq for QueueState
Source§fn eq(&self, other: &QueueState) -> bool
fn eq(&self, other: &QueueState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for QueueState
Auto Trait Implementations§
impl Freeze for QueueState
impl RefUnwindSafe for QueueState
impl Send for QueueState
impl Sync for QueueState
impl Unpin for QueueState
impl UnsafeUnpin for QueueState
impl UnwindSafe for QueueState
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