pub enum EnvelopeContent {
Call {
nonce: Option<Vec<u8>>,
ingress_expiry: u64,
sender: Principal,
canister_id: Principal,
method_name: String,
arg: Vec<u8>,
},
ReadState {
ingress_expiry: u64,
sender: Principal,
paths: Vec<Vec<Label<Vec<u8>>>>,
},
Query {
ingress_expiry: u64,
sender: Principal,
canister_id: Principal,
method_name: String,
arg: Vec<u8>,
nonce: Option<Vec<u8>>,
},
}
Expand description
The content of an IC ingress message, not including any signature information.
Variants§
Call
A replicated call to a canister method, whether update or query.
Fields
ReadState
A request for information from the IC state tree.
Fields
Query
An unreplicated call to a canister query method.
Fields
Implementations§
source§impl EnvelopeContent
impl EnvelopeContent
sourcepub fn ingress_expiry(&self) -> u64
pub fn ingress_expiry(&self) -> u64
Returns the ingress_expiry
field common to all variants.
sourcepub fn to_request_id(&self) -> RequestId
pub fn to_request_id(&self) -> RequestId
Converts the envelope content to a request ID.
Equivalent to calling to_request_id
, but infallible.
Trait Implementations§
source§impl Clone for EnvelopeContent
impl Clone for EnvelopeContent
source§fn clone(&self) -> EnvelopeContent
fn clone(&self) -> EnvelopeContent
Returns a copy 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 moresource§impl Debug for EnvelopeContent
impl Debug for EnvelopeContent
source§impl<'de> Deserialize<'de> for EnvelopeContent
impl<'de> Deserialize<'de> for EnvelopeContent
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EnvelopeContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EnvelopeContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for EnvelopeContent
impl Serialize for EnvelopeContent
source§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
Auto Trait Implementations§
impl Freeze for EnvelopeContent
impl RefUnwindSafe for EnvelopeContent
impl Send for EnvelopeContent
impl Sync for EnvelopeContent
impl Unpin for EnvelopeContent
impl UnwindSafe for EnvelopeContent
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)