pub struct PublisherFence { /* private fields */ }Expand description
The publisher term that produced one generation.
Implementations§
Source§impl PublisherFence
impl PublisherFence
Sourcepub fn try_new(
key: ProjectionKey,
source_incarnation: [u8; 32],
term: u64,
) -> Result<Self, ModelError>
pub fn try_new( key: ProjectionKey, source_incarnation: [u8; 32], term: u64, ) -> Result<Self, ModelError>
Sourcepub const fn key(&self) -> &ProjectionKey
pub const fn key(&self) -> &ProjectionKey
Returns the fenced projection key.
Sourcepub const fn source_incarnation(&self) -> &[u8; 32]
pub const fn source_incarnation(&self) -> &[u8; 32]
Returns the fenced source incarnation.
Trait Implementations§
Source§impl Clone for PublisherFence
impl Clone for PublisherFence
Source§fn clone(&self) -> PublisherFence
fn clone(&self) -> PublisherFence
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 moreSource§impl Debug for PublisherFence
impl Debug for PublisherFence
impl Eq for PublisherFence
Source§impl PartialEq for PublisherFence
impl PartialEq for PublisherFence
impl StructuralPartialEq for PublisherFence
Auto Trait Implementations§
impl Freeze for PublisherFence
impl RefUnwindSafe for PublisherFence
impl Send for PublisherFence
impl Sync for PublisherFence
impl Unpin for PublisherFence
impl UnsafeUnpin for PublisherFence
impl UnwindSafe for PublisherFence
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