pub struct OwnerDriver { /* private fields */ }Expand description
Use the same owner driver after restart. Independent devices sharing a key require a single nonforking owner journal; no distributed lock is provided.
Implementations§
Source§impl OwnerDriver
impl OwnerDriver
pub fn initialize<J: OwnerJournal>( replica: &Replica, owner: &str, limits: Limits, j: &mut J, ) -> Result<Self>
Sourcepub fn recover<J: OwnerJournal>(
replica: &Replica,
owner: &str,
limits: Limits,
j: &J,
) -> Result<Self>
pub fn recover<J: OwnerJournal>( replica: &Replica, owner: &str, limits: Limits, j: &J, ) -> Result<Self>
Requires retained validator metadata/evidence. Re-derives every cost from immutable acts; no serialized balance/reservation cache is accepted.
Sourcepub fn enqueue<J: OwnerJournal>(
&mut self,
draft: Act,
r: &Replica,
j: &mut J,
) -> Result<()>
pub fn enqueue<J: OwnerJournal>( &mut self, draft: Act, r: &Replica, j: &mut J, ) -> Result<()>
A draft is built with Replica::intend; it is not published or signed yet.
Sourcepub fn poll<J: OwnerJournal>(
&mut self,
r: &Replica,
j: &mut J,
) -> Result<OwnerAction>
pub fn poll<J: OwnerJournal>( &mut self, r: &Replica, j: &mut J, ) -> Result<OwnerAction>
Advance deterministic local work. Every externally visible decision is durable first. Poll after importing authentic metadata/certificates.
Auto Trait Implementations§
impl Forget for OwnerDriver
impl Freeze for OwnerDriverwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Entry>: Freeze,
*const LeafNode<String, SetValZST> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, SetValZST)>>: Freeze,
impl Move for OwnerDriver
impl RefUnwindSafe for OwnerDriver
impl Send for OwnerDriver
impl Sync for OwnerDriver
impl Unpin for OwnerDriver
impl UnsafeUnpin for OwnerDriverwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Entry>: UnsafeUnpin,
*const LeafNode<String, SetValZST> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, SetValZST)>>: UnsafeUnpin,
impl UnwindSafe for OwnerDriverwhere
RawVecInner: UnwindSafe,
BTreeMap<String, SetValZST>: UnwindSafe,
BTreeMap<String, SExpr>: UnwindSafe,
BoxRaw<Message>: UnwindSafe,
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