Skip to main content

OwnerDriver

Struct OwnerDriver 

Source
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

Source

pub fn initialize<J: OwnerJournal>( replica: &Replica, owner: &str, limits: Limits, j: &mut J, ) -> Result<Self>

Source

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.

Source

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.

Source

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 OwnerDriver
where *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
where RawVecInner: Send, NodeRef<Owned, String, SetValZST, LeafOrInternal>: Send, BoxRaw<(String, SetValZST)>: Send, NodeRef<Owned, String, SExpr, LeafOrInternal>: Send, BoxRaw<(String, SExpr)>: Send, BoxRaw<Message>: Send,

§

impl Sync for OwnerDriver
where RawVecInner: Sync, NodeRef<Owned, String, SetValZST, LeafOrInternal>: Sync, BoxRaw<(String, SetValZST)>: Sync, NodeRef<Owned, String, SExpr, LeafOrInternal>: Sync, BoxRaw<(String, SExpr)>: Sync, BoxRaw<Message>: Sync,

§

impl Unpin for OwnerDriver
where *const u8 is !null: Unpin, *const LeafNode<String, SetValZST> is !null: Unpin, Box<(String, SetValZST)>: Unpin, *const LeafNode<String, SExpr> is !null: Unpin, Box<(String, SExpr)>: Unpin, Box<Message>: Unpin,

§

impl UnsafeUnpin for OwnerDriver
where *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 OwnerDriver
where RawVecInner: UnwindSafe, BTreeMap<String, SetValZST>: UnwindSafe, BTreeMap<String, SExpr>: UnwindSafe, BoxRaw<Message>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.