pub enum Operation {
Call {
canister: Principal,
method: String,
},
ReadState {
paths: Vec<Vec<String>>,
canister: Principal,
},
ReadSubnetState {
paths: Vec<Vec<String>>,
subnet: Principal,
},
}Expand description
An operation that can result in a reject.
Variants§
Call
A call to a canister method.
Fields
ReadState
A read of the state tree, in the context of a canister. This will not be returned for request polling.
Fields
ReadSubnetState
A read of the state tree, in the context of a subnet.
Trait Implementations§
impl Eq for Operation
impl StructuralPartialEq for Operation
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnwindSafe for Operation
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