pub struct DomainStateView<Db> { /* private fields */ }Expand description
Helper to access the domain state view of the vaults on this shard
Implementations§
Source§impl<Db> DomainStateView<Db>where
Db: DbQueriesPort,
impl<Db> DomainStateView<Db>where
Db: DbQueriesPort,
Sourcepub fn get_vault(&self, owner: &OwnerId) -> Result<Option<Vault>, Error>
pub fn get_vault(&self, owner: &OwnerId) -> Result<Option<Vault>, Error>
Get the domain state view of the Vault of owner.
The domain state view is potentially the ahead of the finalized state. All verifiables applied to the domain are already visible on the vault.
§Parameters
owner- The ID of the vault owner
§Returns
Ok(Some(vault))- If the vault exists (in domain view or finalized state)Ok(None)- If no vault exists for the given owner (not even in finalized state)Err(error)- If a storage error occurred
Trait Implementations§
Source§impl<Db: Clone> Clone for DomainStateView<Db>
impl<Db: Clone> Clone for DomainStateView<Db>
Source§fn clone(&self) -> DomainStateView<Db>
fn clone(&self) -> DomainStateView<Db>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<Db> Freeze for DomainStateView<Db>where
Db: Freeze,
impl<Db> RefUnwindSafe for DomainStateView<Db>where
Db: RefUnwindSafe,
impl<Db> Send for DomainStateView<Db>where
Db: Send,
impl<Db> Sync for DomainStateView<Db>where
Db: Sync,
impl<Db> Unpin for DomainStateView<Db>where
Db: Unpin,
impl<Db> UnwindSafe for DomainStateView<Db>where
Db: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request