pub struct State { /* private fields */ }Implementations§
Source§impl State
impl State
pub fn new() -> Self
pub fn is_corrupted(&self) -> bool
pub fn ensure_not_corrupted(&self) -> Result<()>
pub fn root(&self) -> &Domain
pub fn last_seen_height(&self) -> BlockHeight
pub fn version(&self) -> Version
pub fn block_applying(&mut self, height: BlockHeight) -> Result<()>
pub fn block_reverted(&mut self, height: BlockHeight) -> Result<()>
pub fn apply_transaction(&mut self, txid: &str, asset: CoeusAsset) -> Result<()>
pub fn revert_transaction( &mut self, txid: &str, asset: CoeusAsset, ) -> Result<()>
pub fn validate_domain_owner( &self, name: &DomainName, pk: &MPublicKey, ) -> Result<()>
pub fn domain(&self, name: &DomainName) -> Result<&Domain>
pub fn nonce(&self, pk: &MPublicKey) -> Nonce
pub fn get_txn_status(&self, txid: &str) -> Result<&TxnStatus>
pub fn resolve_data(&self, name: &DomainName) -> Result<&DynamicContent>
pub fn validate_subtree_policies(&self, domain_name: &DomainName) -> Result<()>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for State
impl<'de> Deserialize<'de> for State
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.