#[non_exhaustive]
pub enum LairApiEnum {
Show 31 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), ReqDeriveSeed(LairApiReqDeriveSeed), ResDeriveSeed(LairApiResDeriveSeed), 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.

§

ReqDeriveSeed(LairApiReqDeriveSeed)

Derive a new seed from an existing one according to a specified derivation path.

§

ResDeriveSeed(LairApiResDeriveSeed)

Response for drive 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§

§

impl LairApiEnum

pub fn msg_id(&self) -> Arc<str>

Get the msg_id associated with this msg variant.

Trait Implementations§

§

impl Debug for LairApiEnum

§

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

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for LairApiEnum

§

fn deserialize<__D>( __deserializer: __D ) -> Result<LairApiEnum, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Serialize for LairApiEnum

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl TryFrom<LairApiEnum> for LairApiReqCryptoBoxXSalsaByPubKey

§

type Error = OneErr

The type returned in the event of a conversion error.
§

fn try_from( e: LairApiEnum ) -> Result<LairApiReqCryptoBoxXSalsaByPubKey, <LairApiReqCryptoBoxXSalsaByPubKey as TryFrom<LairApiEnum>>::Error>

Performs the conversion.
§

impl TryFrom<LairApiEnum> for LairApiReqCryptoBoxXSalsaOpenByPubKey

§

type Error = OneErr

The type returned in the event of a conversion error.
§

fn try_from( e: LairApiEnum ) -> Result<LairApiReqCryptoBoxXSalsaOpenByPubKey, <LairApiReqCryptoBoxXSalsaOpenByPubKey as TryFrom<LairApiEnum>>::Error>

Performs the conversion.
§

impl TryFrom<LairApiEnum> for LairApiReqDeriveSeed

§

type Error = OneErr

The type returned in the event of a conversion error.
§

fn try_from( e: LairApiEnum ) -> Result<LairApiReqDeriveSeed, <LairApiReqDeriveSeed as TryFrom<LairApiEnum>>::Error>

Performs the conversion.
§

impl TryFrom<LairApiEnum> for LairApiReqExportSeedByTag

§

type Error = OneErr

The type returned in the event of a conversion error.
§

fn try_from( e: LairApiEnum ) -> Result<LairApiReqExportSeedByTag, <LairApiReqExportSeedByTag as TryFrom<LairApiEnum>>::Error>

Performs the conversion.
§

impl TryFrom<LairApiEnum> for LairApiReqGetEntry

§

type Error = OneErr

The type returned in the event of a conversion error.
§

fn try_from( e: LairApiEnum ) -> Result<LairApiReqGetEntry, <LairApiReqGetEntry as TryFrom<LairApiEnum>>::Error>

Performs the conversion.
§

impl TryFrom<LairApiEnum> for LairApiReqGetWkaTlsCertPrivKey

§

type Error = OneErr

The type returned in the event of a conversion error.
§

fn try_from( e: LairApiEnum ) -> Result<LairApiReqGetWkaTlsCertPrivKey, <LairApiReqGetWkaTlsCertPrivKey as TryFrom<LairApiEnum>>::Error>

Performs the conversion.
§

impl TryFrom<LairApiEnum> for LairApiReqHello

§

type Error = OneErr

The type returned in the event of a conversion error.
§

fn try_from( e: LairApiEnum ) -> Result<LairApiReqHello, <LairApiReqHello as TryFrom<LairApiEnum>>::Error>

Performs the conversion.
§

impl TryFrom<LairApiEnum> for LairApiReqImportSeed

§

type Error = OneErr

The type returned in the event of a conversion error.
§

fn try_from( e: LairApiEnum ) -> Result<LairApiReqImportSeed, <LairApiReqImportSeed as TryFrom<LairApiEnum>>::Error>

Performs the conversion.
§

impl TryFrom<LairApiEnum> for LairApiReqListEntries

§

type Error = OneErr

The type returned in the event of a conversion error.
§

fn try_from( e: LairApiEnum ) -> Result<LairApiReqListEntries, <LairApiReqListEntries as TryFrom<LairApiEnum>>::Error>

Performs the conversion.
§

impl TryFrom<LairApiEnum> for LairApiReqNewSeed

§

type Error = OneErr

The type returned in the event of a conversion error.
§

fn try_from( e: LairApiEnum ) -> Result<LairApiReqNewSeed, <LairApiReqNewSeed as TryFrom<LairApiEnum>>::Error>

Performs the conversion.
§

impl TryFrom<LairApiEnum> for LairApiReqNewWkaTlsCert

§

type Error = OneErr

The type returned in the event of a conversion error.
§

fn try_from( e: LairApiEnum ) -> Result<LairApiReqNewWkaTlsCert, <LairApiReqNewWkaTlsCert as TryFrom<LairApiEnum>>::Error>

Performs the conversion.
§

impl TryFrom<LairApiEnum> for LairApiReqSecretBoxXSalsaByTag

§

type Error = OneErr

The type returned in the event of a conversion error.
§

fn try_from( e: LairApiEnum ) -> Result<LairApiReqSecretBoxXSalsaByTag, <LairApiReqSecretBoxXSalsaByTag as TryFrom<LairApiEnum>>::Error>

Performs the conversion.
§

impl TryFrom<LairApiEnum> for LairApiReqSecretBoxXSalsaOpenByTag

§

type Error = OneErr

The type returned in the event of a conversion error.
§

fn try_from( e: LairApiEnum ) -> Result<LairApiReqSecretBoxXSalsaOpenByTag, <LairApiReqSecretBoxXSalsaOpenByTag as TryFrom<LairApiEnum>>::Error>

Performs the conversion.
§

impl TryFrom<LairApiEnum> for LairApiReqSignByPubKey

§

type Error = OneErr

The type returned in the event of a conversion error.
§

fn try_from( e: LairApiEnum ) -> Result<LairApiReqSignByPubKey, <LairApiReqSignByPubKey as TryFrom<LairApiEnum>>::Error>

Performs the conversion.
§

impl TryFrom<LairApiEnum> for LairApiReqUnlock

§

type Error = OneErr

The type returned in the event of a conversion error.
§

fn try_from( e: LairApiEnum ) -> Result<LairApiReqUnlock, <LairApiReqUnlock as TryFrom<LairApiEnum>>::Error>

Performs the conversion.
§

impl TryFrom<LairApiEnum> for LairApiResCryptoBoxXSalsaByPubKey

§

type Error = OneErr

The type returned in the event of a conversion error.
§

fn try_from( e: LairApiEnum ) -> Result<LairApiResCryptoBoxXSalsaByPubKey, <LairApiResCryptoBoxXSalsaByPubKey as TryFrom<LairApiEnum>>::Error>

Performs the conversion.
§

impl TryFrom<LairApiEnum> for LairApiResCryptoBoxXSalsaOpenByPubKey

§

type Error = OneErr

The type returned in the event of a conversion error.
§

fn try_from( e: LairApiEnum ) -> Result<LairApiResCryptoBoxXSalsaOpenByPubKey, <LairApiResCryptoBoxXSalsaOpenByPubKey as TryFrom<LairApiEnum>>::Error>

Performs the conversion.
§

impl TryFrom<LairApiEnum> for LairApiResDeriveSeed

§

type Error = OneErr

The type returned in the event of a conversion error.
§

fn try_from( e: LairApiEnum ) -> Result<LairApiResDeriveSeed, <LairApiResDeriveSeed as TryFrom<LairApiEnum>>::Error>

Performs the conversion.
§

impl TryFrom<LairApiEnum> for LairApiResError

§

type Error = OneErr

The type returned in the event of a conversion error.
§

fn try_from( e: LairApiEnum ) -> Result<LairApiResError, <LairApiResError as TryFrom<LairApiEnum>>::Error>

Performs the conversion.
§

impl TryFrom<LairApiEnum> for LairApiResExportSeedByTag

§

type Error = OneErr

The type returned in the event of a conversion error.
§

fn try_from( e: LairApiEnum ) -> Result<LairApiResExportSeedByTag, <LairApiResExportSeedByTag as TryFrom<LairApiEnum>>::Error>

Performs the conversion.
§

impl TryFrom<LairApiEnum> for LairApiResGetEntry

§

type Error = OneErr

The type returned in the event of a conversion error.
§

fn try_from( e: LairApiEnum ) -> Result<LairApiResGetEntry, <LairApiResGetEntry as TryFrom<LairApiEnum>>::Error>

Performs the conversion.
§

impl TryFrom<LairApiEnum> for LairApiResGetWkaTlsCertPrivKey

§

type Error = OneErr

The type returned in the event of a conversion error.
§

fn try_from( e: LairApiEnum ) -> Result<LairApiResGetWkaTlsCertPrivKey, <LairApiResGetWkaTlsCertPrivKey as TryFrom<LairApiEnum>>::Error>

Performs the conversion.
§

impl TryFrom<LairApiEnum> for LairApiResHello

§

type Error = OneErr

The type returned in the event of a conversion error.
§

fn try_from( e: LairApiEnum ) -> Result<LairApiResHello, <LairApiResHello as TryFrom<LairApiEnum>>::Error>

Performs the conversion.
§

impl TryFrom<LairApiEnum> for LairApiResImportSeed

§

type Error = OneErr

The type returned in the event of a conversion error.
§

fn try_from( e: LairApiEnum ) -> Result<LairApiResImportSeed, <LairApiResImportSeed as TryFrom<LairApiEnum>>::Error>

Performs the conversion.
§

impl TryFrom<LairApiEnum> for LairApiResListEntries

§

type Error = OneErr

The type returned in the event of a conversion error.
§

fn try_from( e: LairApiEnum ) -> Result<LairApiResListEntries, <LairApiResListEntries as TryFrom<LairApiEnum>>::Error>

Performs the conversion.
§

impl TryFrom<LairApiEnum> for LairApiResNewSeed

§

type Error = OneErr

The type returned in the event of a conversion error.
§

fn try_from( e: LairApiEnum ) -> Result<LairApiResNewSeed, <LairApiResNewSeed as TryFrom<LairApiEnum>>::Error>

Performs the conversion.
§

impl TryFrom<LairApiEnum> for LairApiResNewWkaTlsCert

§

type Error = OneErr

The type returned in the event of a conversion error.
§

fn try_from( e: LairApiEnum ) -> Result<LairApiResNewWkaTlsCert, <LairApiResNewWkaTlsCert as TryFrom<LairApiEnum>>::Error>

Performs the conversion.
§

impl TryFrom<LairApiEnum> for LairApiResSecretBoxXSalsaByTag

§

type Error = OneErr

The type returned in the event of a conversion error.
§

fn try_from( e: LairApiEnum ) -> Result<LairApiResSecretBoxXSalsaByTag, <LairApiResSecretBoxXSalsaByTag as TryFrom<LairApiEnum>>::Error>

Performs the conversion.
§

impl TryFrom<LairApiEnum> for LairApiResSecretBoxXSalsaOpenByTag

§

type Error = OneErr

The type returned in the event of a conversion error.
§

fn try_from( e: LairApiEnum ) -> Result<LairApiResSecretBoxXSalsaOpenByTag, <LairApiResSecretBoxXSalsaOpenByTag as TryFrom<LairApiEnum>>::Error>

Performs the conversion.
§

impl TryFrom<LairApiEnum> for LairApiResSignByPubKey

§

type Error = OneErr

The type returned in the event of a conversion error.
§

fn try_from( e: LairApiEnum ) -> Result<LairApiResSignByPubKey, <LairApiResSignByPubKey as TryFrom<LairApiEnum>>::Error>

Performs the conversion.
§

impl TryFrom<LairApiEnum> for LairApiResUnlock

§

type Error = OneErr

The type returned in the event of a conversion error.
§

fn try_from( e: LairApiEnum ) -> Result<LairApiResUnlock, <LairApiResUnlock as TryFrom<LairApiEnum>>::Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Any for Twhere T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

§

fn type_name(&self) -> &'static str

§

impl<T> AnySync for Twhere T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

§

impl<T> ArchivePointee for T

§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,

§

fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>

Deserializes using the given deserializer
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FutureExt for T

§

fn with_context(self, otel_cx: Context) -> WithContext<Self>

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
§

fn with_current_context(self) -> WithContext<Self>

Attaches the current Context to this type, returning a WithContext wrapper. Read more
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

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

Initializes a with the given initializer. Read more
§

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

Dereferences the given pointer. Read more
§

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

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

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

impl<T> Pointee for T

§

type Metadata = ()

The type for metadata in pointers and references to Self.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
§

impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,

§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
§

impl<T> Upcastable for Twhere T: Any + Send + Sync + 'static,

§

fn upcast_any_ref(&self) -> &(dyn Any + 'static)

upcast ref
§

fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)

upcast mut ref
§

fn upcast_any_box(self: Box<T>) -> Box<dyn Any>

upcast boxed dyn
§

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

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,