Enum age_plugin::identity::Error[][src]

pub enum Error {
    Identity {
        index: usize,
        message: String,
    },
    Internal {
        message: String,
    },
    Stanza {
        file_index: usize,
        stanza_index: usize,
        message: String,
    },
}
Expand description

The kinds of errors that can occur within the identity plugin state machine.

Variants

Identity

An error caused by a specific identity.

Fields of Identity

index: usize

The index of the identity.

message: String

The error message.

Internal

A general error that occured inside the state machine.

Fields of Internal

message: String

The error message.

Stanza

An error caused by a specific stanza.

Note that unknown stanzas MUST be ignored by plugins; this error is only for stanzas that have a supported tag but are otherwise invalid (indicating an invalid age file).

Fields of Stanza

file_index: usize

The index of the file containing the stanza.

stanza_index: usize

The index of the stanza within the file.

message: String

The error message.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.