pub enum CommitIdentityError {
EmbeddedControl,
Unrecognized,
Author(AuthorArgError),
}Expand description
Failure to normalize a commit author or committer string.
Variants§
EmbeddedControl
Newlines, carriage returns, or other C0 controls (except tab) in the input.
Unrecognized
The string is not a contact form, bare email, or full header line with timestamp.
Author(AuthorArgError)
parse_author_arg failure for contact-style input.
Trait Implementations§
Source§impl Clone for CommitIdentityError
impl Clone for CommitIdentityError
Source§impl Debug for CommitIdentityError
impl Debug for CommitIdentityError
Source§impl Display for CommitIdentityError
impl Display for CommitIdentityError
impl Eq for CommitIdentityError
Source§impl Error for CommitIdentityError
impl Error for CommitIdentityError
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<AuthorArgError> for CommitIdentityError
impl From<AuthorArgError> for CommitIdentityError
Source§fn from(source: AuthorArgError) -> Self
fn from(source: AuthorArgError) -> Self
Converts to this type from the input type.
Source§impl From<CommitIdentityError> for Error
impl From<CommitIdentityError> for Error
Source§fn from(source: CommitIdentityError) -> Self
fn from(source: CommitIdentityError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CommitIdentityError
impl PartialEq for CommitIdentityError
impl StructuralPartialEq for CommitIdentityError
Auto Trait Implementations§
impl Freeze for CommitIdentityError
impl RefUnwindSafe for CommitIdentityError
impl Send for CommitIdentityError
impl Sync for CommitIdentityError
impl Unpin for CommitIdentityError
impl UnsafeUnpin for CommitIdentityError
impl UnwindSafe for CommitIdentityError
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