pub enum StreamPolicy {
Exact,
Adaptive {
allow_forward_only: bool,
spill: SpillPolicy,
allow_degraded: bool,
},
ForwardOnly,
}Variants§
Exact
Require an authoritative read. Errors rather than approximating.
Adaptive
The full ladder. Each rung can be individually disabled.
ForwardOnly
Never seek and never spool. Constant memory, single pass.
Trait Implementations§
Source§impl Clone for StreamPolicy
impl Clone for StreamPolicy
Source§fn clone(&self) -> StreamPolicy
fn clone(&self) -> StreamPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StreamPolicy
impl Debug for StreamPolicy
Source§impl Default for StreamPolicy
impl Default for StreamPolicy
impl Eq for StreamPolicy
Source§impl PartialEq for StreamPolicy
impl PartialEq for StreamPolicy
impl StructuralPartialEq for StreamPolicy
Auto Trait Implementations§
impl Freeze for StreamPolicy
impl RefUnwindSafe for StreamPolicy
impl Send for StreamPolicy
impl Sync for StreamPolicy
impl Unpin for StreamPolicy
impl UnsafeUnpin for StreamPolicy
impl UnwindSafe for StreamPolicy
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