pub enum GateValidationError {
EmptyActorKind,
EmptyActorId,
EmptyVerb,
EmptyDenyReason,
ZeroRateLimitWindow,
ZeroRateLimitMax,
}Expand description
Validation error for gate wire types.
Returned by try_new constructors and custom Deserialize impls when
invariants are violated (empty fields, zero rate-limit values).
Variants§
Trait Implementations§
Source§impl Clone for GateValidationError
impl Clone for GateValidationError
Source§fn clone(&self) -> GateValidationError
fn clone(&self) -> GateValidationError
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 GateValidationError
impl Debug for GateValidationError
Source§impl Display for GateValidationError
impl Display for GateValidationError
impl Eq for GateValidationError
Source§impl Error for GateValidationError
impl Error for GateValidationError
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<GateValidationError> for GateError
impl From<GateValidationError> for GateError
Source§fn from(source: GateValidationError) -> Self
fn from(source: GateValidationError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for GateValidationError
impl PartialEq for GateValidationError
Source§fn eq(&self, other: &GateValidationError) -> bool
fn eq(&self, other: &GateValidationError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GateValidationError
Auto Trait Implementations§
impl Freeze for GateValidationError
impl RefUnwindSafe for GateValidationError
impl Send for GateValidationError
impl Sync for GateValidationError
impl Unpin for GateValidationError
impl UnsafeUnpin for GateValidationError
impl UnwindSafe for GateValidationError
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