Enum hg_git_fast_import::error::ErrorKind[][src]

pub enum ErrorKind {
    HgParserFailure(ErrorKind),
    Source(SourceRepositoryError),
    Target(TargetRepositoryError),
    Encoding(Utf8Error),
    IO(Error),
    VerifyFailure(String),
    WrongFileData(String),
    WrongUser(String),
}

Variants

HgParserFailure(ErrorKind)
Encoding(Utf8Error)
IO(Error)
VerifyFailure(String)
WrongFileData(String)
WrongUser(String)

Trait Implementations

impl Debug for ErrorKind[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Display for ErrorKind[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Fail for ErrorKind[src]

fn name(&self) -> Option<&str>[src]

Returns the “name” of the error. Read more

fn cause(&self) -> Option<&dyn Fail>[src]

Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more

fn backtrace(&self) -> Option<&Backtrace>[src]

Returns a reference to the Backtrace carried by this failure, if it carries one. Read more

fn context<D>(self, context: D) -> Context<D> where
    D: Display + Send + Sync + 'static, 
[src]

Provides context for this failure. Read more

fn compat(self) -> Compat<Self>[src]

Wraps this failure in a compatibility wrapper that implements std::error::Error. Read more

impl From<Error> for ErrorKind[src]

fn from(value: Error) -> Self[src]

Performs the conversion.

impl From<ErrorKind> for ErrorKind[src]

fn from(value: ErrorKind) -> Self[src]

Performs the conversion.

impl From<SourceRepositoryError> for ErrorKind[src]

fn from(value: SourceRepositoryError) -> Self[src]

Performs the conversion.

impl From<TargetRepositoryError> for ErrorKind[src]

fn from(value: TargetRepositoryError) -> Self[src]

Performs the conversion.

impl From<Utf8Error> for ErrorKind[src]

fn from(value: Utf8Error) -> Self[src]

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> AsFail for T where
    T: Fail
[src]

pub fn as_fail(&self) -> &(dyn Fail + 'static)[src]

Converts a reference to Self into a dynamic trait object of Fail.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Pointable for T

pub const ALIGN: usize

The alignment of pointer.

type Init = T

The type for initializers.

pub unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more

pub unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more

pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more

pub unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

pub default fn to_string(&self) -> String[src]

Converts the given value to a String. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V