pub enum ActrCliError {
Show 16 variants
Io(Error),
Network(Error),
Serialization(Error),
Git(Error),
Configuration(String),
InvalidProject(String),
ProjectExists(String),
Dependency(String),
Build(String),
CodeGeneration(String),
Template(RenderError),
Command(String),
Actor(ActrError),
UriParsing(ActrUriError),
ConfigParsing(ConfigError),
Internal(Error),
}Variants§
Io(Error)
Network(Error)
Serialization(Error)
Git(Error)
Configuration(String)
InvalidProject(String)
ProjectExists(String)
Dependency(String)
Build(String)
CodeGeneration(String)
Template(RenderError)
Command(String)
Actor(ActrError)
UriParsing(ActrUriError)
ConfigParsing(ConfigError)
Internal(Error)
Implementations§
Source§impl ActrCliError
impl ActrCliError
Sourcepub fn config_error(msg: impl Into<String>) -> Self
pub fn config_error(msg: impl Into<String>) -> Self
将字符串转换为配置错误
Sourcepub fn dependency_error(msg: impl Into<String>) -> Self
pub fn dependency_error(msg: impl Into<String>) -> Self
将字符串转换为依赖错误
Sourcepub fn build_error(msg: impl Into<String>) -> Self
pub fn build_error(msg: impl Into<String>) -> Self
将字符串转换为构建错误
Sourcepub fn command_error(msg: impl Into<String>) -> Self
pub fn command_error(msg: impl Into<String>) -> Self
将字符串转换为命令执行错误
Sourcepub fn is_config_error(&self) -> bool
pub fn is_config_error(&self) -> bool
检查是否为配置相关错误
Sourcepub fn is_network_error(&self) -> bool
pub fn is_network_error(&self) -> bool
检查是否为网络相关错误
Trait Implementations§
Source§impl Debug for ActrCliError
impl Debug for ActrCliError
Source§impl Display for ActrCliError
impl Display for ActrCliError
Source§impl Error for ActrCliError
impl Error for ActrCliError
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<ActrError> for ActrCliError
impl From<ActrError> for ActrCliError
Source§impl From<ActrUriError> for ActrCliError
impl From<ActrUriError> for ActrCliError
Source§fn from(source: ActrUriError) -> Self
fn from(source: ActrUriError) -> Self
Converts to this type from the input type.
Source§impl From<ConfigError> for ActrCliError
impl From<ConfigError> for ActrCliError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for ActrCliError
impl From<Error> for ActrCliError
Source§impl From<Error> for ActrCliError
impl From<Error> for ActrCliError
Source§impl From<Error> for ActrCliError
impl From<Error> for ActrCliError
Source§impl From<Error> for ActrCliError
impl From<Error> for ActrCliError
Source§impl From<Error> for ActrCliError
impl From<Error> for ActrCliError
Source§impl From<RenderError> for ActrCliError
impl From<RenderError> for ActrCliError
Source§fn from(source: RenderError) -> Self
fn from(source: RenderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ActrCliError
impl !RefUnwindSafe for ActrCliError
impl Send for ActrCliError
impl Sync for ActrCliError
impl Unpin for ActrCliError
impl !UnwindSafe for ActrCliError
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
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more