pub enum DevToolError {
PathEscape(String),
ReadOnly(&'static str),
BashDisabled,
NotRead(String),
NoMatch(String),
Ambiguous {
path: String,
count: usize,
},
Timeout(Duration),
Io(Error),
Other(String),
}Expand description
Errors produced by the developer tools.
Variants§
PathEscape(String)
The requested path resolves outside the workspace root.
ReadOnly(&'static str)
A mutating operation was attempted on a read-only workspace.
BashDisabled
bash execution is disabled for this workspace.
NotRead(String)
edit_file was called on a file that has not been read in this session.
NoMatch(String)
old_string was not found in the target file.
Ambiguous
old_string matched more than once and replace_all was not set.
Timeout(Duration)
A bash command exceeded its timeout.
Io(Error)
An underlying I/O error.
Other(String)
Any other error (e.g. invalid arguments, bad regex).
Trait Implementations§
Source§impl Debug for DevToolError
impl Debug for DevToolError
Source§impl Display for DevToolError
impl Display for DevToolError
Source§impl Error for DevToolError
impl Error for DevToolError
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<DevToolError> for AdkError
impl From<DevToolError> for AdkError
Source§fn from(e: DevToolError) -> Self
fn from(e: DevToolError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for DevToolError
impl !UnwindSafe for DevToolError
impl Freeze for DevToolError
impl Send for DevToolError
impl Sync for DevToolError
impl Unpin for DevToolError
impl UnsafeUnpin for DevToolError
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