pub enum Error {
Show 15 variants
Io(Error),
TomlDeserialize(Error),
TomlSerialize(Error),
Regex(Error),
Api(ApiError),
RichText(RichTextError),
ProjectDirs(String),
EmptyFilter,
UnparseableFilter(String),
SavedFilterNotFound {
name: String,
path: PathBuf,
},
EmptySavedFilter(String),
NoFilterExpressions(String),
UnsupportedSortField(String),
TemplateNotFound {
name: String,
search_dir: PathBuf,
},
TracingInit(String),
}Expand description
All errors raised by the Asana CLI library layer.
Variants§
Io(Error)
A filesystem operation failed.
TomlDeserialize(Error)
A configuration or template TOML document failed to parse.
TomlSerialize(Error)
Configuration could not be encoded to TOML for persistence.
Regex(Error)
A user-supplied regular expression in a filter expression was invalid.
Api(ApiError)
An Asana API interaction failed.
RichText(RichTextError)
Rich-text preparation or validation failed.
ProjectDirs(String)
The platform’s standard project directories could not be resolved.
EmptyFilter
A filter expression was empty.
UnparseableFilter(String)
A filter expression did not match any supported operator syntax.
SavedFilterNotFound
A named saved-filter set could not be located on disk.
EmptySavedFilter(String)
A named saved-filter set existed but contained no usable expressions.
NoFilterExpressions(String)
A filter set was asked to be saved without any expressions.
UnsupportedSortField(String)
A sort field name was not one of the supported values.
TemplateNotFound
A named project template could not be located.
Fields
TracingInit(String)
The global tracing subscriber could not be installed.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<RichTextError> for Error
impl From<RichTextError> for Error
Source§fn from(source: RichTextError) -> Self
fn from(source: RichTextError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.