pub enum LinkPhase {
Pending {
destination: DestinationHash,
expected_hops: u8,
mode: LinkMode,
initiator_secret: X25519SecretKey,
link_signing: Ed25519SecretKey,
requested_at: InstantMillis,
command_id: CommandId,
},
Handshake {
key: LinkKey,
requested_at: InstantMillis,
mtu: usize,
initiator_signing: Ed25519PublicKey,
destination: DestinationHash,
identity: IdentityHash,
proof_strategy: ProofStrategy,
},
Active {Show 14 fields
key: LinkKey,
role: LinkRole,
rtt: RttMillis,
mtu: usize,
attached_interface: InterfaceId,
last_inbound: InstantMillis,
last_outbound: InstantMillis,
last_keepalive_sent: InstantMillis,
keepalive_ms: u64,
peer_signing: Ed25519PublicKey,
remote_identity: Option<IdentityHash>,
resource_strategy: ResourceStrategy,
last_resource_window: Option<usize>,
last_resource_eifr: Option<u64>,
},
}Variants§
Pending
Fields
§
destination: DestinationHash§
initiator_secret: X25519SecretKey§
link_signing: Ed25519SecretKey§
requested_at: InstantMillisHandshake
Fields
§
requested_at: InstantMillis§
initiator_signing: Ed25519PublicKey§
destination: DestinationHash§
identity: IdentityHash§
proof_strategy: ProofStrategyActive
Fields
§
attached_interface: InterfaceId§
last_inbound: InstantMillis§
last_outbound: InstantMillis§
last_keepalive_sent: InstantMillis§
peer_signing: Ed25519PublicKey§
remote_identity: Option<IdentityHash>§
resource_strategy: ResourceStrategyImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LinkPhase
impl RefUnwindSafe for LinkPhase
impl Send for LinkPhase
impl Sync for LinkPhase
impl Unpin for LinkPhase
impl UnsafeUnpin for LinkPhase
impl UnwindSafe for LinkPhase
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more