pub struct Options {
pub depth: usize,
pub alts: usize,
pub input: InputForm,
pub force: Option<Force>,
pub max_items: usize,
}Expand description
Decoding options.
Fields§
§depth: usizeMaximum nesting of layers and protobuf messages.
alts: usizeMaximum interpretations kept per protobuf LEN field (at least 1).
input: InputFormHow to read the top-level input.
force: Option<Force>Force the interpretation of the first decoded byte layer.
max_items: usizeMaximum protobuf fields, CBOR/MessagePack values and DER elements per
peel, in total (TOO_MANY_ITEMS beyond it). Each costs memory and
output far beyond the input bytes it can take up.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Options
impl Freeze for Options
impl Move for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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