pub enum MethodMode {
Update,
Query,
CompositeQuery,
Oneway,
}Expand description
Candid method mode, retaining the distinction between update and oneway.
Variants§
Update
Ordinary update call.
Query
Query call.
CompositeQuery
Composite query call.
Oneway
Candid oneway update, with no reply.
Implementations§
Source§impl MethodMode
impl MethodMode
Sourcepub const fn export_mode(self) -> Self
pub const fn export_mode(self) -> Self
Project Candid call semantics to the corresponding Wasm export mode. Wasm has no separate oneway export namespace.
Trait Implementations§
Source§impl Clone for MethodMode
impl Clone for MethodMode
impl Copy for MethodMode
Source§impl Debug for MethodMode
impl Debug for MethodMode
impl Eq for MethodMode
Source§impl Ord for MethodMode
impl Ord for MethodMode
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for MethodMode
impl PartialEq for MethodMode
Source§impl PartialOrd for MethodMode
impl PartialOrd for MethodMode
impl StructuralPartialEq for MethodMode
Auto Trait Implementations§
impl Freeze for MethodMode
impl RefUnwindSafe for MethodMode
impl Send for MethodMode
impl Sync for MethodMode
impl Unpin for MethodMode
impl UnsafeUnpin for MethodMode
impl UnwindSafe for MethodMode
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