Struct BaseVault
pub struct BaseVault { /* private fields */ }Expand description
Vault structure for the base shard.
Trait Implementations§
§impl<'de> Deserialize<'de> for Vault
impl<'de> Deserialize<'de> for Vault
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Vault, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Vault, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl ReadableBaseVault for Vault
impl ReadableBaseVault for Vault
§fn nonce(&self, index: NonceIndex) -> u64
fn nonce(&self, index: NonceIndex) -> u64
Returns the current transaction nonce for a specific transaction type. Read more
§impl ReadableNativeBalance for Vault
impl ReadableNativeBalance for Vault
§impl Serialize for Vault
impl Serialize for Vault
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
§impl WritableBaseVault for Vault
impl WritableBaseVault for Vault
§fn set_nonce(&mut self, index: NonceIndex, nonce: u64)
fn set_nonce(&mut self, index: NonceIndex, nonce: u64)
Sets the vault’s transaction nonce for a specific NonceIndex.
§fn increase_nonce(&mut self, index: NonceIndex) -> Result<u64, VaultError>
fn increase_nonce(&mut self, index: NonceIndex) -> Result<u64, VaultError>
Increases the vault’s nonce by 1. Read more
§impl WritableNativeBalance for Vault
impl WritableNativeBalance for Vault
§fn set_balance(&mut self, balance: u64)
fn set_balance(&mut self, balance: u64)
Sets the native token balance of the vault. Read more
§fn checked_add_balance(&mut self, balance: u64) -> Result<(), VaultError>
fn checked_add_balance(&mut self, balance: u64) -> Result<(), VaultError>
Adds to the native token balance with overflow checking. Read more
§fn checked_sub_balance(&mut self, balance: u64) -> Result<(), VaultError>
fn checked_sub_balance(&mut self, balance: u64) -> Result<(), VaultError>
Subtracts from the native token balance with underflow checking. Read more
§fn saturating_add_balance(&mut self, balance: u64)
fn saturating_add_balance(&mut self, balance: u64)
Adds to the native token balance with saturation. Read more
§fn saturating_sub_balance(&mut self, balance: u64)
fn saturating_sub_balance(&mut self, balance: u64)
Subtracts from the native token balance with saturation. Read more
impl Copy for Vault
impl Eq for Vault
impl StructuralPartialEq for Vault
Auto Trait Implementations§
impl Freeze for Vault
impl RefUnwindSafe for Vault
impl Send for Vault
impl Sync for Vault
impl Unpin for Vault
impl UnwindSafe for Vault
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§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