Enum fixity::error::Error[][src]

pub enum Error {
Show variants Unhandled(String), Internal { source: Internal, }, RepositoryNotFound, NoChangesToWrite, NoStageToCommit, DetachedHead, CannotReplaceRootMap, DanglingAddr { message: String, addr: Option<Addr>, }, Type(Type), Builder { message: String, }, Prolly { message: String, }, ProllyAddr { addr: Addr, message: String, }, Storage(Error), Io(Error), IoInputRead { err: Error, }, IncompleteWrite { got: usize, expected: usize, }, Deser(Error), SerdeJson(Error), Borsh(Error), BorshAddr { addr: Addr, err: Error, }, Cjson(Error),
}

Variants

Unhandled(String)
Internal

An internal error to Fixity where user action is not expected.

Fields of Internal

source: Internal
RepositoryNotFound

A fixi repository was not found.

NoChangesToWrite

An action was attempted that writes changes to the repository, but no changes exist.

NoStageToCommit

A commit was attempted without any changes staged.

DetachedHead

An action is unsupported when the HEAD is detached.

CannotReplaceRootMap

Writing a non-Map to the root of the Fixity repository is not allowed in most cases, as it would dangle the majority of pointers.

DanglingAddr

An addr exists but data was not found in storage.

Fields of DanglingAddr

message: Stringaddr: Option<Addr>

The address that is dangling, if available.

The optional address in the error allows the caller to provide it if available, but not allocate prematurely for the error condition.

Type(Type)
Builder

Fields of Builder

message: String
Prolly

Fields of Prolly

message: String
ProllyAddr

Fields of ProllyAddr

addr: Addrmessage: String
Storage(Error)
Io(Error)
IoInputRead

Fields of IoInputRead

err: Error
IncompleteWrite

Fields of IncompleteWrite

got: usizeexpected: usize
Deser(Error)
SerdeJson(Error)
Borsh(Error)

A Borsh error..

for some reason they return an io::Error, the std::io type is not a bug.

BorshAddr

A Borsh error, with an address..

for some reason they return an io::Error, the std::io type is not a bug.

Fields of BorshAddr

addr: Addrerr: Error
Cjson(Error)

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<InitError> for Error[src]

impl From<Internal> for Error[src]

impl From<Type> for Error[src]

Auto Trait Implementations

impl !RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl !UnwindSafe for Error

Blanket Implementations

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

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

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

impl<T> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

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

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

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

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

impl<T> TryConv for T

impl<T> TryConv for T

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.

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.