pub struct OrdinaryBindingAuthority { /* private fields */ }Expand description
Opaque authority for the current epoch produced by an ordinary attach.
Only a successful non-fenced attach commit can construct this value. It is
therefore disjoint from FencedAttachCommit: a recovered binding cannot
use the ordinary no-marker fate path.
ⓘ
use liminal_protocol::lifecycle::{ActiveBinding, OrdinaryBindingAuthority};
fn fabricate(binding: ActiveBinding) {
let _ = OrdinaryBindingAuthority::new(binding, 11);
}An ordinary-attach fork also cannot extract authority through the public surface. Only the protocol-owned aggregate/replay path may consume it:
ⓘ
use liminal_protocol::lifecycle::AttachCommit;
fn splice<F, V>(commit: &AttachCommit<F, V>) {
let _ = commit.ordinary_binding_authority();
}Even code handed the opaque type cannot execute its fate transition:
ⓘ
use liminal_protocol::lifecycle::{CommittedDiedTerminal, OrdinaryBindingAuthority};
fn execute(authority: OrdinaryBindingAuthority, terminal: CommittedDiedTerminal) {
let _ = authority.binding_fate(terminal, 11);
}ⓘ
use liminal_protocol::lifecycle::{Event, OrdinaryBindingAuthority};
fn advance(authority: OrdinaryBindingAuthority, event: Event) {
let _ = authority.cursor_progressed(event);
}Implementations§
Source§impl OrdinaryBindingAuthority
impl OrdinaryBindingAuthority
Sourcepub const fn binding(self) -> ActiveBinding
pub const fn binding(self) -> ActiveBinding
Returns the exact authoritative binding committed by ordinary attach.
Sourcepub const fn through_seq(self) -> DeliverySeq
pub const fn through_seq(self) -> DeliverySeq
Returns the durable no-marker cursor carried through ordinary attach.
Trait Implementations§
Source§impl Clone for OrdinaryBindingAuthority
impl Clone for OrdinaryBindingAuthority
Source§fn clone(&self) -> OrdinaryBindingAuthority
fn clone(&self) -> OrdinaryBindingAuthority
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 OrdinaryBindingAuthority
Source§impl Debug for OrdinaryBindingAuthority
impl Debug for OrdinaryBindingAuthority
impl Eq for OrdinaryBindingAuthority
Source§impl PartialEq for OrdinaryBindingAuthority
impl PartialEq for OrdinaryBindingAuthority
impl StructuralPartialEq for OrdinaryBindingAuthority
Auto Trait Implementations§
impl Freeze for OrdinaryBindingAuthority
impl RefUnwindSafe for OrdinaryBindingAuthority
impl Send for OrdinaryBindingAuthority
impl Sync for OrdinaryBindingAuthority
impl Unpin for OrdinaryBindingAuthority
impl UnsafeUnpin for OrdinaryBindingAuthority
impl UnwindSafe for OrdinaryBindingAuthority
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