pub struct ActError {
pub kind: String,
pub message: String,
}Expand description
Error type mapping to ACT tool-error.
Fields§
§kind: String§message: StringImplementations§
Source§impl ActError
impl ActError
pub fn new(kind: impl Into<String>, message: impl Into<String>) -> ActError
pub fn not_found(message: impl Into<String>) -> ActError
pub fn invalid_args(message: impl Into<String>) -> ActError
pub fn internal(message: impl Into<String>) -> ActError
pub fn timeout(message: impl Into<String>) -> ActError
pub fn capability_denied(message: impl Into<String>) -> ActError
Trait Implementations§
Source§impl Error for ActError
impl Error for ActError
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()
Auto Trait Implementations§
impl Freeze for ActError
impl RefUnwindSafe for ActError
impl Send for ActError
impl Sync for ActError
impl Unpin for ActError
impl UnsafeUnpin for ActError
impl UnwindSafe for ActError
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