pub enum WtgError {
Show 19 variants
EmptyInput,
NotInGitRepo,
NotFound(String),
TagNotFound(String),
Unsupported(String),
Git(Error),
GhConnectionLost,
GhRateLimit(Error),
GhSaml(Error),
GhBadCredentials(Error),
GitHub(Error),
MultipleMatches(Vec<String>),
Io(Error),
Cli {
message: String,
code: i32,
},
Timeout,
NotGitHubUrl(String),
MalformedGitHubUrl(String),
SecurityRejection(String),
GitHubClientFailed,
}Variants§
EmptyInput
NotInGitRepo
NotFound(String)
TagNotFound(String)
Unsupported(String)
Git(Error)
GhConnectionLost
GhRateLimit(Error)
GhSaml(Error)
GhBadCredentials(Error)
GitHub(Error)
MultipleMatches(Vec<String>)
Io(Error)
Cli
Timeout
NotGitHubUrl(String)
MalformedGitHubUrl(String)
SecurityRejection(String)
GitHubClientFailed
Implementations§
Source§impl WtgError
impl WtgError
Sourcepub const fn is_empty_input(&self) -> bool
pub const fn is_empty_input(&self) -> bool
Returns true if the enum is WtgError::EmptyInput otherwise false
Sourcepub const fn is_not_in_git_repo(&self) -> bool
pub const fn is_not_in_git_repo(&self) -> bool
Returns true if the enum is WtgError::NotInGitRepo otherwise false
Sourcepub const fn is_not_found(&self) -> bool
pub const fn is_not_found(&self) -> bool
Returns true if the enum is WtgError::NotFound otherwise false
Sourcepub const fn is_tag_not_found(&self) -> bool
pub const fn is_tag_not_found(&self) -> bool
Returns true if the enum is WtgError::TagNotFound otherwise false
Sourcepub const fn is_unsupported(&self) -> bool
pub const fn is_unsupported(&self) -> bool
Returns true if the enum is WtgError::Unsupported otherwise false
Sourcepub const fn is_gh_connection_lost(&self) -> bool
pub const fn is_gh_connection_lost(&self) -> bool
Returns true if the enum is WtgError::GhConnectionLost otherwise false
Sourcepub const fn is_gh_rate_limit(&self) -> bool
pub const fn is_gh_rate_limit(&self) -> bool
Returns true if the enum is WtgError::GhRateLimit otherwise false
Sourcepub const fn is_gh_saml(&self) -> bool
pub const fn is_gh_saml(&self) -> bool
Returns true if the enum is WtgError::GhSaml otherwise false
Sourcepub const fn is_gh_bad_credentials(&self) -> bool
pub const fn is_gh_bad_credentials(&self) -> bool
Returns true if the enum is WtgError::GhBadCredentials otherwise false
Sourcepub const fn is_git_hub(&self) -> bool
pub const fn is_git_hub(&self) -> bool
Returns true if the enum is WtgError::GitHub otherwise false
Sourcepub const fn is_multiple_matches(&self) -> bool
pub const fn is_multiple_matches(&self) -> bool
Returns true if the enum is WtgError::MultipleMatches otherwise false
Sourcepub const fn is_timeout(&self) -> bool
pub const fn is_timeout(&self) -> bool
Returns true if the enum is WtgError::Timeout otherwise false
Sourcepub const fn is_not_git_hub_url(&self) -> bool
pub const fn is_not_git_hub_url(&self) -> bool
Returns true if the enum is WtgError::NotGitHubUrl otherwise false
Sourcepub const fn is_malformed_git_hub_url(&self) -> bool
pub const fn is_malformed_git_hub_url(&self) -> bool
Returns true if the enum is WtgError::MalformedGitHubUrl otherwise false
Sourcepub const fn is_security_rejection(&self) -> bool
pub const fn is_security_rejection(&self) -> bool
Returns true if the enum is WtgError::SecurityRejection otherwise false
Sourcepub const fn is_git_hub_client_failed(&self) -> bool
pub const fn is_git_hub_client_failed(&self) -> bool
Returns true if the enum is WtgError::GitHubClientFailed otherwise false
Trait Implementations§
Source§impl Error for WtgError
impl Error for WtgError
1.30.0 · 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
Auto Trait Implementations§
impl !Freeze for WtgError
impl !RefUnwindSafe for WtgError
impl Send for WtgError
impl Sync for WtgError
impl Unpin for WtgError
impl UnsafeUnpin for WtgError
impl !UnwindSafe for WtgError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
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> 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>
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>
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 moreSource§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.