#[non_exhaustive]
pub enum LairApiEnum {
Show 29 variants ResError(LairApiResError), ReqHello(LairApiReqHello), ResHello(LairApiResHello), ReqUnlock(LairApiReqUnlock), ResUnlock(LairApiResUnlock), ReqGetEntry(LairApiReqGetEntry), ResGetEntry(LairApiResGetEntry), ReqListEntries(LairApiReqListEntries), ResListEntries(LairApiResListEntries), ReqNewSeed(LairApiReqNewSeed), ResNewSeed(LairApiResNewSeed), ReqExportSeedByTag(LairApiReqExportSeedByTag), ResExportSeedByTag(LairApiResExportSeedByTag), ReqImportSeed(LairApiReqImportSeed), ResImportSeed(LairApiResImportSeed), ReqSignByPubKey(LairApiReqSignByPubKey), ResSignByPubKey(LairApiResSignByPubKey), ReqCryptoBoxXSalsaByPubKey(LairApiReqCryptoBoxXSalsaByPubKey), ResCryptoBoxXSalsaByPubKey(LairApiResCryptoBoxXSalsaByPubKey), ReqCryptoBoxXSalsaOpenByPubKey(LairApiReqCryptoBoxXSalsaOpenByPubKey), ResCryptoBoxXSalsaOpenByPubKey(LairApiResCryptoBoxXSalsaOpenByPubKey), ReqNewWkaTlsCert(LairApiReqNewWkaTlsCert), ResNewWkaTlsCert(LairApiResNewWkaTlsCert), ReqGetWkaTlsCertPrivKey(LairApiReqGetWkaTlsCertPrivKey), ResGetWkaTlsCertPrivKey(LairApiResGetWkaTlsCertPrivKey), ReqSecretBoxXSalsaByTag(LairApiReqSecretBoxXSalsaByTag), ResSecretBoxXSalsaByTag(LairApiResSecretBoxXSalsaByTag), ReqSecretBoxXSalsaOpenByTag(LairApiReqSecretBoxXSalsaOpenByTag), ResSecretBoxXSalsaOpenByTag(LairApiResSecretBoxXSalsaOpenByTag),
}
Expand description

Lair api enum.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

ResError(LairApiResError)

An error response from the remote instance.

§

ReqHello(LairApiReqHello)

Initiate communication with the target lair instance.

§

ResHello(LairApiResHello)

The hello response from the target lair instance. This data allows us to verify we are speaking to our expected target.

§

ReqUnlock(LairApiReqUnlock)

Unlock the keystore – this verifies the client to the keystore.

§

ResUnlock(LairApiResUnlock)

Sucess / Failure of the unlock request.

§

ReqGetEntry(LairApiReqGetEntry)

Get entry_info for an entry by tag from lair.

§

ResGetEntry(LairApiResGetEntry)

Response to a GetEntry request.

§

ReqListEntries(LairApiReqListEntries)

Request a list of entries from lair.

§

ResListEntries(LairApiResListEntries)

Respond to a list entries request.

§

ReqNewSeed(LairApiReqNewSeed)

Instruct lair to generate a new seed from cryptographically secure random data with given tag.

§

ResNewSeed(LairApiResNewSeed)

On new seed generation, lair will respond with info about that seed.

§

ReqExportSeedByTag(LairApiReqExportSeedByTag)

Export a seed (if it is marked exportable) for a specific target using the crypto box xsalsa20poly1305 algorithm.

§

ResExportSeedByTag(LairApiResExportSeedByTag)

Response for export seed by tag.

§

ReqImportSeed(LairApiReqImportSeed)

Import a seed encrypted as a xsalsa20poly1305 secretbox.

§

ResImportSeed(LairApiResImportSeed)

Response for import seed.

§

ReqSignByPubKey(LairApiReqSignByPubKey)

Request a signature.

§

ResSignByPubKey(LairApiResSignByPubKey)

A signature response.

§

ReqCryptoBoxXSalsaByPubKey(LairApiReqCryptoBoxXSalsaByPubKey)

Request “crypto_box” encryption.

§

ResCryptoBoxXSalsaByPubKey(LairApiResCryptoBoxXSalsaByPubKey)

A “crypto_box” encryption response.

§

ReqCryptoBoxXSalsaOpenByPubKey(LairApiReqCryptoBoxXSalsaOpenByPubKey)

Request “crypto_box_open” decryption.

§

ResCryptoBoxXSalsaOpenByPubKey(LairApiResCryptoBoxXSalsaOpenByPubKey)

A “crypto_box_open” decryption response.

§

ReqNewWkaTlsCert(LairApiReqNewWkaTlsCert)

Instruct lair to generate a new wka tls certificate from cryptographically secure random data with given tag.

§

ResNewWkaTlsCert(LairApiResNewWkaTlsCert)

On new cert generation, lair will respond with info about that cert.

§

ReqGetWkaTlsCertPrivKey(LairApiReqGetWkaTlsCertPrivKey)

Request the private key associated with a tagged wka tls cert.

§

ResGetWkaTlsCertPrivKey(LairApiResGetWkaTlsCertPrivKey)

Returns the private key associated with a tagged wka tls cert.

§

ReqSecretBoxXSalsaByTag(LairApiReqSecretBoxXSalsaByTag)

Request “secretbox” encryption.

§

ResSecretBoxXSalsaByTag(LairApiResSecretBoxXSalsaByTag)

A “secretbox” encryption response.

§

ReqSecretBoxXSalsaOpenByTag(LairApiReqSecretBoxXSalsaOpenByTag)

Request “secretbox” decryption.

§

ResSecretBoxXSalsaOpenByTag(LairApiResSecretBoxXSalsaOpenByTag)

A “secretbox” decryption response.

Implementations§

Get the msg_id associated with this msg variant.

Trait Implementations§

Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
The type returned in the event of a conversion error.
Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
TODO: once 1.33.0 is the minimum supported compiler version, remove Any::type_id_compat and use StdAny::type_id instead. https://github.com/rust-lang/rust/issues/27745
The archived version of the pointer metadata for this type.
Converts some archived metadata to the pointer metadata for itself.
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Deserializes using the given deserializer

Returns the argument unchanged.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Attaches the current Context to this type, returning a WithContext wrapper. Read more
Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The type for metadata in pointers and references to Self.
Should always be Self
The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Checks if self is actually part of its subset T (and can be converted to it).
Use with care! Same as self.to_subset but without any property checks. Always succeeds.
The inclusion map: converts self to the equivalent element of its superset.
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.
upcast ref
upcast mut ref
upcast boxed dyn
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more