pub struct ArgDecoderConfig {
pub decoding_quota: Option<usize>,
pub skipping_quota: Option<usize>,
pub debug: bool,
}
Expand description
Config to control the behavior of decoding canister endpoint arguments.
Fields§
§decoding_quota: Option<usize>
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>
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
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