pub enum FallbackMode {
Disabled,
Enabled,
}Expand description
Controls how non-streamable XPath expressions are handled.
By default, non-streamable XPath expressions will return an error. This prevents unexpected memory usage from automatic fallback to two-pass processing.
Variants§
Disabled
Return an error for non-streamable XPath expressions (default).
Use this mode when you want to ensure streaming processing and avoid unexpected memory usage.
Enabled
Automatically use two-pass processing for non-streamable XPath.
Warning: This may load the entire document into memory. Only use this if you understand the memory implications.
Trait Implementations§
Source§impl Clone for FallbackMode
impl Clone for FallbackMode
Source§fn clone(&self) -> FallbackMode
fn clone(&self) -> FallbackMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FallbackMode
impl Debug for FallbackMode
Source§impl Default for FallbackMode
impl Default for FallbackMode
Source§fn default() -> FallbackMode
fn default() -> FallbackMode
Returns the “default value” for a type. Read more
Source§impl PartialEq for FallbackMode
impl PartialEq for FallbackMode
impl Copy for FallbackMode
impl Eq for FallbackMode
impl StructuralPartialEq for FallbackMode
Auto Trait Implementations§
impl Freeze for FallbackMode
impl RefUnwindSafe for FallbackMode
impl Send for FallbackMode
impl Sync for FallbackMode
impl Unpin for FallbackMode
impl UnsafeUnpin for FallbackMode
impl UnwindSafe for FallbackMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.