Skip to main content

EncryptOwed

Struct EncryptOwed 

Source
pub struct EncryptOwed {
    pub header: WirePacketHeader,
    pub dh_target: X25519PublicKey,
    pub recipient_identity_hash: IdentityHash,
    pub ephemeral_secret: X25519SecretKey,
    pub iv: [u8; 16],
    pub payload: Vec<u8, prns_core::::engine::commands::send_single::SendSinglePacketPayload::{constant#0}>,
    pub command_id: CommandId,
    pub peer_signing_key: IdentitySigningPublicKey,
    pub sent_at: InstantMillis,
    pub timeout_at: InstantMillis,
    pub fire_on: InterfaceId,
}
Expand description

Move-only: it carries the ephemeral secret, which seals exactly one packet.

Fields§

§header: WirePacketHeader§dh_target: X25519PublicKey§recipient_identity_hash: IdentityHash§ephemeral_secret: X25519SecretKey§iv: [u8; 16]§payload: Vec<u8, prns_core::::engine::commands::send_single::SendSinglePacketPayload::{constant#0}>§command_id: CommandId§peer_signing_key: IdentitySigningPublicKey§sent_at: InstantMillis§timeout_at: InstantMillis§fire_on: InterfaceId

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where 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.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

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 T
where U: TryFrom<T>,

Source§

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.