pub enum PimdirActionError {
Json,
UnknownVersion(Option<i64>),
MissingField(&'static str),
}Expand description
A malformed action payload; the owner parks the row instead of applying it.
An unrecognised kind is not one of these: it decodes as
PimdirAction::Unknown and is skipped, since another owner may be
able to perform it. Only a payload no owner could act on lands here.
Variants§
Json
The payload is not a JSON object.
UnknownVersion(Option<i64>)
The payload’s leading v is missing or not a supported version.
MissingField(&'static str)
A required payload field is missing or has the wrong shape.
Trait Implementations§
Source§impl Clone for PimdirActionError
impl Clone for PimdirActionError
Source§fn clone(&self) -> PimdirActionError
fn clone(&self) -> PimdirActionError
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 PimdirActionError
impl Debug for PimdirActionError
Source§impl Display for PimdirActionError
impl Display for PimdirActionError
impl Eq for PimdirActionError
Source§impl Error for PimdirActionError
impl Error for PimdirActionError
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<PimdirActionError> for PimdirError
Available on crate feature client only.
impl From<PimdirActionError> for PimdirError
Available on crate feature
client only.Source§fn from(err: PimdirActionError) -> Self
fn from(err: PimdirActionError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PimdirActionError
impl PartialEq for PimdirActionError
impl StructuralPartialEq for PimdirActionError
Auto Trait Implementations§
impl Freeze for PimdirActionError
impl RefUnwindSafe for PimdirActionError
impl Send for PimdirActionError
impl Sync for PimdirActionError
impl Unpin for PimdirActionError
impl UnsafeUnpin for PimdirActionError
impl UnwindSafe for PimdirActionError
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