pub struct ArgDecoderConfig {
pub decoding_quota: Option<usize>,
pub skipping_quota: Option<usize>,
pub debug: bool,
}
๐Deprecated since 0.18.0: Please use
candid::de::DecoderConfig
instead.Expand description
Config to control the behavior of decoding canister entry point arguments.
Fieldsยง
ยงdecoding_quota: Option<usize>
๐Deprecated since 0.18.0: Please use
candid::de::DecoderConfig
instead.Limit the total amount of work the deserializer can perform. See docs on the Candid library to understand the cost model.
skipping_quota: Option<usize>
๐Deprecated since 0.18.0: Please use
candid::de::DecoderConfig
instead.Limit the total amount of work for skipping unneeded data on the wire. See docs on the Candid library to understand the skipping cost.
debug: bool
๐Deprecated since 0.18.0: Please use
candid::de::DecoderConfig
instead.When set to true, print instruction count and the decoding/skipping cost to the replica log.
Trait Implementationsยง
Sourceยงimpl Debug for ArgDecoderConfig
impl Debug for ArgDecoderConfig
Auto Trait Implementationsยง
impl Freeze for ArgDecoderConfig
impl RefUnwindSafe for ArgDecoderConfig
impl Send for ArgDecoderConfig
impl Sync for ArgDecoderConfig
impl Unpin for ArgDecoderConfig
impl UnwindSafe for ArgDecoderConfig
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