pub struct LinkOffer {
pub link_id: String,
pub end: LinkEnd,
pub machine: [u8; 32],
pub handshake: Vec<u8>,
}Expand description
The link a machine offers to open, carried by Frame::LinkOpen.
machine is the sender’s Ed25519 public key as Lys recorded it; the
server refuses an offer whose key is not the one recorded for the
connection’s verified holder. handshake is the first Noise KK message,
keyed from that identity’s X25519 derivation.
Fields§
§link_id: StringThe link’s id under the network.
end: LinkEndThe end the sender takes.
machine: [u8; 32]The sender’s Ed25519 public key as Lys recorded it.
handshake: Vec<u8>The sender’s first handshake message.
Trait Implementations§
impl Eq for LinkOffer
impl StructuralPartialEq for LinkOffer
Auto Trait Implementations§
impl Freeze for LinkOffer
impl RefUnwindSafe for LinkOffer
impl Send for LinkOffer
impl Sync for LinkOffer
impl Unpin for LinkOffer
impl UnsafeUnpin for LinkOffer
impl UnwindSafe for LinkOffer
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.