pub struct LinkId(/* private fields */);Implementations§
Source§impl LinkId
impl LinkId
pub const fn new(bytes: [u8; 16]) -> LinkId
pub fn derive( destination: &DestinationHash, initiator_encryption: &X25519PublicKey, initiator_signing: &Ed25519PublicKey, ) -> LinkId
pub const fn as_bytes(&self) -> &[u8; 16]
pub const fn from_address(address: WireAddress) -> LinkId
pub const fn to_address(&self) -> WireAddress
Trait Implementations§
impl Copy for LinkId
impl Eq for LinkId
impl StructuralPartialEq for LinkId
Auto Trait Implementations§
impl Freeze for LinkId
impl RefUnwindSafe for LinkId
impl Send for LinkId
impl Sync for LinkId
impl Unpin for LinkId
impl UnsafeUnpin for LinkId
impl UnwindSafe for LinkId
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