pub enum ErrorPolicy {
UseCached,
Fail,
UseDefault,
}Expand description
What to do when a source fetch fails.
Variants§
UseCached
Use the last successfully fetched value.
Fail
Fail the pipeline load (at startup: exit; at runtime: keep previous state).
UseDefault
Fall back to the declared default value.
Trait Implementations§
Source§impl Clone for ErrorPolicy
impl Clone for ErrorPolicy
Source§fn clone(&self) -> ErrorPolicy
fn clone(&self) -> ErrorPolicy
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 ErrorPolicy
impl Debug for ErrorPolicy
Source§impl PartialEq for ErrorPolicy
impl PartialEq for ErrorPolicy
Source§fn eq(&self, other: &ErrorPolicy) -> bool
fn eq(&self, other: &ErrorPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ErrorPolicy
impl Eq for ErrorPolicy
impl StructuralPartialEq for ErrorPolicy
Auto Trait Implementations§
impl Freeze for ErrorPolicy
impl RefUnwindSafe for ErrorPolicy
impl Send for ErrorPolicy
impl Sync for ErrorPolicy
impl Unpin for ErrorPolicy
impl UnsafeUnpin for ErrorPolicy
impl UnwindSafe for ErrorPolicy
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.