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
Fields of ToCliRequestUnlockPassphrase
msg_id: u64
Fields of ToLairLairGetLastEntryIndex
msg_id: u64
Fields of ToCliLairGetLastEntryIndexResponse
msg_id: u64
last_keystore_index: KeystoreIndex
Fields of ToLairLairGetEntryType
msg_id: u64
keystore_index: KeystoreIndex
Fields of ToCliLairGetEntryTypeResponse
msg_id: u64
lair_entry_type: LairEntryType
Fields of ToLairLairGetServerInfo
msg_id: u64
Fields of ToCliLairGetServerInfoResponse
msg_id: u64
info: LairServerInfo
Fields of ToLairTlsCertNewSelfSignedFromEntropy
msg_id: u64
cert_alg: TlsCertAlg
Fields of ToCliTlsCertNewSelfSignedFromEntropyResponse
Fields of ToLairTlsCertGet
msg_id: u64
keystore_index: KeystoreIndex
Fields of ToCliTlsCertGetResponse
Fields of ToLairTlsCertGetCertByIndex
msg_id: u64
keystore_index: KeystoreIndex
Fields of ToLairTlsCertGetCertByDigest
msg_id: u64
cert_digest: CertDigest
Fields of ToLairTlsCertGetPrivKeyByIndex
msg_id: u64
keystore_index: KeystoreIndex
Fields of ToCliTlsCertGetPrivKeyByIndexResponse
msg_id: u64
cert_priv_key: CertPrivKey
Fields of ToLairTlsCertGetPrivKeyByDigest
msg_id: u64
cert_digest: CertDigest
Fields of ToCliTlsCertGetPrivKeyByDigestResponse
msg_id: u64
cert_priv_key: CertPrivKey
Fields of ToCliTlsCertGetPrivKeyBySniResponse
msg_id: u64
cert_priv_key: CertPrivKey
Fields of ToLairSignEd25519NewFromEntropy
msg_id: u64
Fields of ToCliSignEd25519NewFromEntropyResponse
Fields of ToLairSignEd25519Get
msg_id: u64
keystore_index: KeystoreIndex
Fields of ToCliSignEd25519GetResponse
msg_id: u64
pub_key: SignEd25519PubKey
Fields of ToLairSignEd25519SignByIndex
Fields of ToCliSignEd25519SignByIndexResponse
msg_id: u64
signature: SignEd25519Signature
Fields of ToLairSignEd25519SignByPubKey
Fields of ToCliSignEd25519SignByPubKeyResponse
msg_id: u64
signature: SignEd25519Signature
Fields of ToLairX25519NewFromEntropy
msg_id: u64
Fields of ToCliX25519NewFromEntropyResponse
Fields of ToLairX25519Get
msg_id: u64
keystore_index: KeystoreIndex
Fields of ToCliX25519GetResponse
msg_id: u64
pub_key: X25519PubKey
Fields of ToLairCryptoBoxByIndex
Fields of ToCliCryptoBoxByIndexResponse
msg_id: u64
encrypted_data: CryptoBoxEncryptedData
Fields of ToLairCryptoBoxByPubKey
Fields of ToCliCryptoBoxByPubKeyResponse
msg_id: u64
encrypted_data: CryptoBoxEncryptedData
Fields of ToLairCryptoBoxOpenByIndex
msg_id: u64
keystore_index: KeystoreIndex
sender: X25519PubKey
encrypted_data: Arc<CryptoBoxEncryptedData>
Fields of ToCliCryptoBoxOpenByIndexResponse
msg_id: u64
data: Option<CryptoBoxData>
Fields of ToLairCryptoBoxOpenByPubKey
Fields of ToCliCryptoBoxOpenByPubKeyResponse
msg_id: u64
data: Option<CryptoBoxData>
Implementations
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.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for LairWire
impl UnwindSafe for LairWire
Blanket Implementations
Mutably borrows from an owned value. Read more
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
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