pub enum ElementPolicyKind {
Error,
Skip,
}Expand description
Element Error Policy Kind (scp-error.md “The Element Error Policy”). A map node property:
whether an element’s Failure becomes the map’s Component Failure (Error, the default) or the
failing element is dropped and the rest proceed (Skip, order preserved).
Variants§
Implementations§
Source§impl ElementPolicyKind
impl ElementPolicyKind
Sourcepub fn parse(s: &str) -> Option<ElementPolicyKind>
pub fn parse(s: &str) -> Option<ElementPolicyKind>
Parse a wire kind. None for an unrecognized kind — the caller fails closed.
Trait Implementations§
Source§impl Clone for ElementPolicyKind
impl Clone for ElementPolicyKind
Source§fn clone(&self) -> ElementPolicyKind
fn clone(&self) -> ElementPolicyKind
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 moreimpl Copy for ElementPolicyKind
Source§impl Debug for ElementPolicyKind
impl Debug for ElementPolicyKind
impl Eq for ElementPolicyKind
Source§impl PartialEq for ElementPolicyKind
impl PartialEq for ElementPolicyKind
impl StructuralPartialEq for ElementPolicyKind
Auto Trait Implementations§
impl Freeze for ElementPolicyKind
impl RefUnwindSafe for ElementPolicyKind
impl Send for ElementPolicyKind
impl Sync for ElementPolicyKind
impl Unpin for ElementPolicyKind
impl UnsafeUnpin for ElementPolicyKind
impl UnwindSafe for ElementPolicyKind
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.