pub trait TransactionCallLike {
// Required methods
fn to_call(&self) -> TransactionCall;
fn decode_call(call: &[u8]) -> Option<Box<Self>>;
fn decode_hex_call(call: &str) -> Option<Box<Self>>;
fn decode_call_data(call_data: &[u8]) -> Option<Box<Self>>;
fn decode_hex_transaction(transaction: &str) -> Option<Box<Self>>;
fn decode_transaction(transaction: &[u8]) -> Option<Box<Self>>;
}
Required Methods§
fn to_call(&self) -> TransactionCall
Sourcefn decode_call(call: &[u8]) -> Option<Box<Self>>
fn decode_call(call: &[u8]) -> Option<Box<Self>>
Decodes the SCALE encoded Transaction Call
Sourcefn decode_hex_call(call: &str) -> Option<Box<Self>>
fn decode_hex_call(call: &str) -> Option<Box<Self>>
Decodes the Hex and SCALE encoded Transaction Call This is equal to Hex::decode + Self::decode_call
Sourcefn decode_call_data(call_data: &[u8]) -> Option<Box<Self>>
fn decode_call_data(call_data: &[u8]) -> Option<Box<Self>>
Decodes only the SCALE encoded Transaction Call Data
Sourcefn decode_hex_transaction(transaction: &str) -> Option<Box<Self>>
fn decode_hex_transaction(transaction: &str) -> Option<Box<Self>>
Decodes the whole Hex and SCALE encoded Transaction. This is equal to Hex::decode + OpaqueTransaction::try_from + Self::decode_call
Sourcefn decode_transaction(transaction: &[u8]) -> Option<Box<Self>>
fn decode_transaction(transaction: &[u8]) -> Option<Box<Self>>
Decodes the whole SCALE encoded Transaction. This is equal to OpaqueTransaction::try_from + Self::decode_call
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.