[−][src]Struct sabre_sdk::SabreTransactionContext
Methods
impl SabreTransactionContext
[src]
pub fn new() -> SabreTransactionContext
[src]
Trait Implementations
impl Default for SabreTransactionContext
[src]
fn default() -> SabreTransactionContext
[src]
impl TransactionContext for SabreTransactionContext
[src]
fn get_state_entries(
&self,
addresses: &[String]
) -> Result<Vec<(String, Vec<u8>)>, WasmSdkError>
[src]
&self,
addresses: &[String]
) -> Result<Vec<(String, Vec<u8>)>, WasmSdkError>
fn set_state_entries(
&self,
entries: Vec<(String, Vec<u8>)>
) -> Result<(), WasmSdkError>
[src]
&self,
entries: Vec<(String, Vec<u8>)>
) -> Result<(), WasmSdkError>
fn delete_state_entries(
&self,
addresses: &[String]
) -> Result<Vec<String>, WasmSdkError>
[src]
&self,
addresses: &[String]
) -> Result<Vec<String>, WasmSdkError>
fn get_state(
&self,
addresses: &[String]
) -> Result<Vec<(String, Vec<u8>)>, WasmSdkError>
[src]
&self,
addresses: &[String]
) -> Result<Vec<(String, Vec<u8>)>, WasmSdkError>
fn get_state_entry(
&self,
address: &str
) -> Result<Option<Vec<u8>>, WasmSdkError>
[src]
&self,
address: &str
) -> Result<Option<Vec<u8>>, WasmSdkError>
fn set_state(
&self,
entries: HashMap<String, Vec<u8>>
) -> Result<(), WasmSdkError>
[src]
&self,
entries: HashMap<String, Vec<u8>>
) -> Result<(), WasmSdkError>
fn set_state_entry(
&self,
address: String,
data: Vec<u8>
) -> Result<(), WasmSdkError>
[src]
&self,
address: String,
data: Vec<u8>
) -> Result<(), WasmSdkError>
fn delete_state(
&self,
addresses: &[String]
) -> Result<Vec<String>, WasmSdkError>
[src]
&self,
addresses: &[String]
) -> Result<Vec<String>, WasmSdkError>
fn delete_state_entry(
&self,
address: &str
) -> Result<Option<String>, WasmSdkError>
[src]
&self,
address: &str
) -> Result<Option<String>, WasmSdkError>
Auto Trait Implementations
impl RefUnwindSafe for SabreTransactionContext
impl Send for SabreTransactionContext
impl Sync for SabreTransactionContext
impl Unpin for SabreTransactionContext
impl UnwindSafe for SabreTransactionContext
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SafeBorrow<T> for T where
T: ?Sized,
T: ?Sized,
fn borrow_replacement(ptr: &T) -> &T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,