pub enum PredicateWireError {
Empty,
RootOutOfBounds {
root_idx: u32,
len: usize,
},
ChildOutOfBounds {
child: u32,
len: usize,
},
CycleDetected {
parent: u32,
child: u32,
},
}Expand description
Errors raised by PredicateWire::into_predicate.
Variants§
Empty
Wire payload had an empty nodes table.
RootOutOfBounds
root_idx was out of bounds for the nodes table.
ChildOutOfBounds
A composite node referenced a child index that was out of bounds.
CycleDetected
A composite node referenced a child index that was greater than or equal to its own. Catches index cycles introduced by malformed / malicious wire payloads.
Trait Implementations§
Source§impl Clone for PredicateWireError
impl Clone for PredicateWireError
Source§fn clone(&self) -> PredicateWireError
fn clone(&self) -> PredicateWireError
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 PredicateWireError
impl Debug for PredicateWireError
Source§impl Display for PredicateWireError
impl Display for PredicateWireError
Source§impl Error for PredicateWireError
impl Error for PredicateWireError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<PredicateWireError> for PredicateRpcDecodeError
impl From<PredicateWireError> for PredicateRpcDecodeError
Source§fn from(source: PredicateWireError) -> Self
fn from(source: PredicateWireError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PredicateWireError
impl PartialEq for PredicateWireError
Source§fn eq(&self, other: &PredicateWireError) -> bool
fn eq(&self, other: &PredicateWireError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PredicateWireError
Auto Trait Implementations§
impl Freeze for PredicateWireError
impl RefUnwindSafe for PredicateWireError
impl Send for PredicateWireError
impl Sync for PredicateWireError
impl Unpin for PredicateWireError
impl UnsafeUnpin for PredicateWireError
impl UnwindSafe for PredicateWireError
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