pub enum ActionError {
UnknownView(ViewId),
UnknownBuffer(BufferId),
InvalidPattern(String),
NotFound,
ReadOnly,
NoCommentSyntax,
InvalidJson(Box<InvalidJson>),
Decode(String),
NoBookmarks,
}Variants§
UnknownView(ViewId)
UnknownBuffer(BufferId)
InvalidPattern(String)
NotFound
ReadOnly
The buffer is read-only.
NoCommentSyntax
The language has no comment markers ochrepad knows.
InvalidJson(Box<InvalidJson>)
The JSON is not valid (boxed to keep errors small).
Decode(String)
The text cannot be decoded; the message says why.
NoBookmarks
A bookmark command found no bookmarks.
Trait Implementations§
Source§impl Clone for ActionError
impl Clone for ActionError
Source§impl Debug for ActionError
impl Debug for ActionError
Source§impl Display for ActionError
impl Display for ActionError
impl Eq for ActionError
Source§impl Error for ActionError
impl Error for ActionError
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 PartialEq for ActionError
impl PartialEq for ActionError
impl StructuralPartialEq for ActionError
Auto Trait Implementations§
impl Freeze for ActionError
impl RefUnwindSafe for ActionError
impl Send for ActionError
impl Sync for ActionError
impl Unpin for ActionError
impl UnsafeUnpin for ActionError
impl UnwindSafe for ActionError
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