pub enum CallError {
UnsupportedVerb,
InvalidArgs,
Internal,
Unknown(u32),
ShortCommand {
found: usize,
expected: usize,
},
}Expand description
What one call to a plugin came back with.
Variants§
UnsupportedVerb
The plugin does not do that verb.
Not a failure of the run: for exec the host may still run the user’s command verbatim, and
that decision belongs to the engine.
InvalidArgs
The plugin thinks the call was malformed.
Internal
The plugin failed internally, including a panic it contained itself.
Unknown(u32)
A code this host does not know.
Kept as it came: the rule is that an unknown code is treated like CallError::Internal,
but a host that wants to log the number can.
ShortCommand
The plugin answered success but filled in a pmpx_plugin_abi::PmpxCommand smaller than
this host knows how to read.
Implementations§
Trait Implementations§
impl Eq for CallError
Source§impl Error for CallError
impl Error for CallError
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()
impl StructuralPartialEq for CallError
Auto Trait Implementations§
impl Freeze for CallError
impl RefUnwindSafe for CallError
impl Send for CallError
impl Sync for CallError
impl Unpin for CallError
impl UnsafeUnpin for CallError
impl UnwindSafe for CallError
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