Enum lair_keystore_api::internal::wire::LairWire[][src]

pub enum LairWire {
Show 45 variants ErrorResponse { msg_id: u64, message: String, }, ToCliRequestUnlockPassphrase { msg_id: u64, }, ToLairRequestUnlockPassphraseResponse { msg_id: u64, passphrase: String, }, ToLairLairGetLastEntryIndex { msg_id: u64, }, ToCliLairGetLastEntryIndexResponse { msg_id: u64, last_keystore_index: KeystoreIndex, }, ToLairLairGetEntryType { msg_id: u64, keystore_index: KeystoreIndex, }, ToCliLairGetEntryTypeResponse { msg_id: u64, lair_entry_type: LairEntryType, }, ToLairLairGetServerInfo { msg_id: u64, }, ToCliLairGetServerInfoResponse { msg_id: u64, info: LairServerInfo, }, ToLairTlsCertNewSelfSignedFromEntropy { msg_id: u64, cert_alg: TlsCertAlg, }, ToCliTlsCertNewSelfSignedFromEntropyResponse { msg_id: u64, keystore_index: KeystoreIndex, cert_sni: CertSni, cert_digest: CertDigest, }, ToLairTlsCertGet { msg_id: u64, keystore_index: KeystoreIndex, }, ToCliTlsCertGetResponse { msg_id: u64, cert_sni: CertSni, cert_digest: CertDigest, }, ToLairTlsCertGetCertByIndex { msg_id: u64, keystore_index: KeystoreIndex, }, ToCliTlsCertGetCertByIndexResponse { msg_id: u64, cert: Cert, }, ToLairTlsCertGetCertByDigest { msg_id: u64, cert_digest: CertDigest, }, ToCliTlsCertGetCertByDigestResponse { msg_id: u64, cert: Cert, }, ToLairTlsCertGetCertBySni { msg_id: u64, cert_sni: CertSni, }, ToCliTlsCertGetCertBySniResponse { msg_id: u64, cert: Cert, }, ToLairTlsCertGetPrivKeyByIndex { msg_id: u64, keystore_index: KeystoreIndex, }, ToCliTlsCertGetPrivKeyByIndexResponse { msg_id: u64, cert_priv_key: CertPrivKey, }, ToLairTlsCertGetPrivKeyByDigest { msg_id: u64, cert_digest: CertDigest, }, ToCliTlsCertGetPrivKeyByDigestResponse { msg_id: u64, cert_priv_key: CertPrivKey, }, ToLairTlsCertGetPrivKeyBySni { msg_id: u64, cert_sni: CertSni, }, ToCliTlsCertGetPrivKeyBySniResponse { msg_id: u64, cert_priv_key: CertPrivKey, }, ToLairSignEd25519NewFromEntropy { msg_id: u64, }, ToCliSignEd25519NewFromEntropyResponse { msg_id: u64, keystore_index: KeystoreIndex, pub_key: SignEd25519PubKey, }, ToLairSignEd25519Get { msg_id: u64, keystore_index: KeystoreIndex, }, ToCliSignEd25519GetResponse { msg_id: u64, pub_key: SignEd25519PubKey, }, ToLairSignEd25519SignByIndex { msg_id: u64, keystore_index: KeystoreIndex, message: Arc<Vec<u8>>, }, ToCliSignEd25519SignByIndexResponse { msg_id: u64, signature: SignEd25519Signature, }, ToLairSignEd25519SignByPubKey { msg_id: u64, pub_key: SignEd25519PubKey, message: Arc<Vec<u8>>, }, ToCliSignEd25519SignByPubKeyResponse { msg_id: u64, signature: SignEd25519Signature, }, ToLairX25519NewFromEntropy { msg_id: u64, }, ToCliX25519NewFromEntropyResponse { msg_id: u64, keystore_index: KeystoreIndex, pub_key: X25519PubKey, }, ToLairX25519Get { msg_id: u64, keystore_index: KeystoreIndex, }, ToCliX25519GetResponse { msg_id: u64, pub_key: X25519PubKey, }, ToLairCryptoBoxByIndex { msg_id: u64, keystore_index: KeystoreIndex, recipient: X25519PubKey, data: Arc<CryptoBoxData>, }, ToCliCryptoBoxByIndexResponse { msg_id: u64, encrypted_data: CryptoBoxEncryptedData, }, ToLairCryptoBoxByPubKey { msg_id: u64, pub_key: X25519PubKey, recipient: X25519PubKey, data: Arc<CryptoBoxData>, }, ToCliCryptoBoxByPubKeyResponse { msg_id: u64, encrypted_data: CryptoBoxEncryptedData, }, ToLairCryptoBoxOpenByIndex { msg_id: u64, keystore_index: KeystoreIndex, sender: X25519PubKey, encrypted_data: Arc<CryptoBoxEncryptedData>, }, ToCliCryptoBoxOpenByIndexResponse { msg_id: u64, data: Option<CryptoBoxData>, }, ToLairCryptoBoxOpenByPubKey { msg_id: u64, pub_key: X25519PubKey, sender: X25519PubKey, encrypted_data: Arc<CryptoBoxEncryptedData>, }, ToCliCryptoBoxOpenByPubKeyResponse { msg_id: u64, data: Option<CryptoBoxData>, },
}
Expand description

Giant unified lair wire protocol enum.

Variants

ErrorResponse

Fields of ErrorResponse

msg_id: u64message: String
ToCliRequestUnlockPassphrase

Fields of ToCliRequestUnlockPassphrase

msg_id: u64
ToLairRequestUnlockPassphraseResponse

Fields of ToLairRequestUnlockPassphraseResponse

msg_id: u64passphrase: String
ToLairLairGetLastEntryIndex

Fields of ToLairLairGetLastEntryIndex

msg_id: u64
ToCliLairGetLastEntryIndexResponse

Fields of ToCliLairGetLastEntryIndexResponse

msg_id: u64last_keystore_index: KeystoreIndex
ToLairLairGetEntryType

Fields of ToLairLairGetEntryType

msg_id: u64keystore_index: KeystoreIndex
ToCliLairGetEntryTypeResponse

Fields of ToCliLairGetEntryTypeResponse

msg_id: u64lair_entry_type: LairEntryType
ToLairLairGetServerInfo

Fields of ToLairLairGetServerInfo

msg_id: u64
ToCliLairGetServerInfoResponse

Fields of ToCliLairGetServerInfoResponse

msg_id: u64info: LairServerInfo
ToLairTlsCertNewSelfSignedFromEntropy

Fields of ToLairTlsCertNewSelfSignedFromEntropy

msg_id: u64cert_alg: TlsCertAlg
ToCliTlsCertNewSelfSignedFromEntropyResponse

Fields of ToCliTlsCertNewSelfSignedFromEntropyResponse

msg_id: u64keystore_index: KeystoreIndexcert_sni: CertSnicert_digest: CertDigest
ToLairTlsCertGet

Fields of ToLairTlsCertGet

msg_id: u64keystore_index: KeystoreIndex
ToCliTlsCertGetResponse

Fields of ToCliTlsCertGetResponse

msg_id: u64cert_sni: CertSnicert_digest: CertDigest
ToLairTlsCertGetCertByIndex

Fields of ToLairTlsCertGetCertByIndex

msg_id: u64keystore_index: KeystoreIndex
ToCliTlsCertGetCertByIndexResponse

Fields of ToCliTlsCertGetCertByIndexResponse

msg_id: u64cert: Cert
ToLairTlsCertGetCertByDigest

Fields of ToLairTlsCertGetCertByDigest

msg_id: u64cert_digest: CertDigest
ToCliTlsCertGetCertByDigestResponse

Fields of ToCliTlsCertGetCertByDigestResponse

msg_id: u64cert: Cert
ToLairTlsCertGetCertBySni

Fields of ToLairTlsCertGetCertBySni

msg_id: u64cert_sni: CertSni
ToCliTlsCertGetCertBySniResponse

Fields of ToCliTlsCertGetCertBySniResponse

msg_id: u64cert: Cert
ToLairTlsCertGetPrivKeyByIndex

Fields of ToLairTlsCertGetPrivKeyByIndex

msg_id: u64keystore_index: KeystoreIndex
ToCliTlsCertGetPrivKeyByIndexResponse

Fields of ToCliTlsCertGetPrivKeyByIndexResponse

msg_id: u64cert_priv_key: CertPrivKey
ToLairTlsCertGetPrivKeyByDigest

Fields of ToLairTlsCertGetPrivKeyByDigest

msg_id: u64cert_digest: CertDigest
ToCliTlsCertGetPrivKeyByDigestResponse

Fields of ToCliTlsCertGetPrivKeyByDigestResponse

msg_id: u64cert_priv_key: CertPrivKey
ToLairTlsCertGetPrivKeyBySni

Fields of ToLairTlsCertGetPrivKeyBySni

msg_id: u64cert_sni: CertSni
ToCliTlsCertGetPrivKeyBySniResponse

Fields of ToCliTlsCertGetPrivKeyBySniResponse

msg_id: u64cert_priv_key: CertPrivKey
ToLairSignEd25519NewFromEntropy

Fields of ToLairSignEd25519NewFromEntropy

msg_id: u64
ToCliSignEd25519NewFromEntropyResponse

Fields of ToCliSignEd25519NewFromEntropyResponse

msg_id: u64keystore_index: KeystoreIndexpub_key: SignEd25519PubKey
ToLairSignEd25519Get

Fields of ToLairSignEd25519Get

msg_id: u64keystore_index: KeystoreIndex
ToCliSignEd25519GetResponse

Fields of ToCliSignEd25519GetResponse

msg_id: u64pub_key: SignEd25519PubKey
ToLairSignEd25519SignByIndex

Fields of ToLairSignEd25519SignByIndex

msg_id: u64keystore_index: KeystoreIndexmessage: Arc<Vec<u8>>
ToCliSignEd25519SignByIndexResponse

Fields of ToCliSignEd25519SignByIndexResponse

msg_id: u64signature: SignEd25519Signature
ToLairSignEd25519SignByPubKey

Fields of ToLairSignEd25519SignByPubKey

msg_id: u64pub_key: SignEd25519PubKeymessage: Arc<Vec<u8>>
ToCliSignEd25519SignByPubKeyResponse

Fields of ToCliSignEd25519SignByPubKeyResponse

msg_id: u64signature: SignEd25519Signature
ToLairX25519NewFromEntropy

Fields of ToLairX25519NewFromEntropy

msg_id: u64
ToCliX25519NewFromEntropyResponse

Fields of ToCliX25519NewFromEntropyResponse

msg_id: u64keystore_index: KeystoreIndexpub_key: X25519PubKey
ToLairX25519Get

Fields of ToLairX25519Get

msg_id: u64keystore_index: KeystoreIndex
ToCliX25519GetResponse

Fields of ToCliX25519GetResponse

msg_id: u64pub_key: X25519PubKey
ToLairCryptoBoxByIndex

Fields of ToLairCryptoBoxByIndex

msg_id: u64keystore_index: KeystoreIndexrecipient: X25519PubKeydata: Arc<CryptoBoxData>
ToCliCryptoBoxByIndexResponse

Fields of ToCliCryptoBoxByIndexResponse

msg_id: u64encrypted_data: CryptoBoxEncryptedData
ToLairCryptoBoxByPubKey

Fields of ToLairCryptoBoxByPubKey

msg_id: u64pub_key: X25519PubKeyrecipient: X25519PubKeydata: Arc<CryptoBoxData>
ToCliCryptoBoxByPubKeyResponse

Fields of ToCliCryptoBoxByPubKeyResponse

msg_id: u64encrypted_data: CryptoBoxEncryptedData
ToLairCryptoBoxOpenByIndex

Fields of ToLairCryptoBoxOpenByIndex

msg_id: u64keystore_index: KeystoreIndexsender: X25519PubKeyencrypted_data: Arc<CryptoBoxEncryptedData>
ToCliCryptoBoxOpenByIndexResponse

Fields of ToCliCryptoBoxOpenByIndexResponse

msg_id: u64data: Option<CryptoBoxData>
ToLairCryptoBoxOpenByPubKey

Fields of ToLairCryptoBoxOpenByPubKey

msg_id: u64pub_key: X25519PubKeysender: X25519PubKeyencrypted_data: Arc<CryptoBoxEncryptedData>
ToCliCryptoBoxOpenByPubKeyResponse

Fields of ToCliCryptoBoxOpenByPubKeyResponse

msg_id: u64data: Option<CryptoBoxData>

Implementations

Is this an “event” type message?

Is this a “request” type message? If false, this must be a “response” type message.

Get the msg_id associated with this variant.

Encode this variant into lair wire protocol binary data.

Returns the amount of data we need to decode the next item.

Returns true if we have enough bytes to decode.

Decode lair wire protocol binary data into enum variant.

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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.

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

Performs the conversion.

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

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.

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