Struct ic_utils::canister::Argument [−][src]
pub struct Argument(_);
Implementations
impl Argument[src]
impl Argument[src]pub fn push_idl_arg<A: CandidType>(&mut self, arg: A)[src]
pub fn push_idl_arg<A: CandidType>(&mut self, arg: A)[src]Add an IDL Argument. If the current value of Argument is Raw, will set the result to an error. If the current value is an error, will do nothing.
pub fn push_value_arg(&mut self, arg: IDLValue)[src]
pub fn push_value_arg(&mut self, arg: IDLValue)[src]Add an IDLValue Argument. If the current value of Argument is Raw, will set the result to an error. If the current value is an error, will do nothing.
pub fn set_raw_arg(&mut self, arg: Vec<u8>)[src]
pub fn set_raw_arg(&mut self, arg: Vec<u8>)[src]Set the argument as raw, replacing any value that was there before. If the current argument was an error, does nothing.
pub fn serialize(self) -> Result<Vec<u8>, AgentError>[src]
pub fn reset(&mut self)[src]
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Argument
impl Send for Argument
impl Sync for Argument
impl Unpin for Argument
impl !UnwindSafe for Argument
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]impl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
type Output = TShould always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,