Skip to main content

Module object

Module object 

Source
Expand description

Data model for exchanging data with the in-app WAF.

Structs§

Keyed
An WafObject or TypedWafObject associated with a key.
LengthTooLargeError
The error that is returned when a value’s length exceeds the maximum allowed.
LibddwafDefaultAllocator
Allocator type that uses libddwaf’s default.
ObjectTypeError
The error that is returned when a WafObject does not have the expected WafObjectType.
RustAllocator
Allocator type that uses the Rust-registered allocator.
UnknownObjectTypeError
The error that is returned when a WafObject does not have a known, valid WafObjectType.
WafArray
The WAF object representation of a value of type WafObjectType::Array
WafBool
The WAF object representation of a value of type WafObjectType::Bool
WafFloat
The WAF object representation of a value of type WafObjectType::Float
WafInvalid
The WAF object representation of a value of type WafObjectType::Invalid
WafIter
An iterator over an WafArray or WafMap.
WafMap
The WAF object representation of a value of type WafObjectType::Map
WafNull
The WAF object representation of a value of type WafObjectType::Null
WafObject
The low-level representation of an arbitrary WAF object.
WafOwned
A WAF-owned WafObject or TypedWafObject value.
WafSigned
The WAF object representation of a value of type WafObjectType::Signed
WafString
The WAF object representation of a value of type WafObjectType::String
WafUnsigned
The WAF object representation of a value of type WafObjectType::Unsigned

Enums§

WafObjectType
Identifies the type of the value stored in a WafObject.

Traits§

AllocatorType
Trait to encode which allocator should be used for deallocation in the type system.
TypedWafObject
This trait is implemented by type-safe interfaces to the WafObject, with one implementation for each WafObjectType.

Type Aliases§

WafOwnedDefaultAllocator
Type alias for WAF-owned objects using the system default allocator.
WafOwnedOutputAllocator
Type alias for WAF-owned objects using the Rust-registered allocator (for outputs).