pub struct Link {
pub info: IdentityPacket,
pub pair_state: PairState,
/* private fields */
}Expand description
A structure representing a peer device linked to this device but not necessarily paired.
Fields§
§info: IdentityPacketDevice information about this linked remote device.
pair_state: PairStateThe pairing state between the current device and the linked remote device.
Implementations§
Source§impl Link
impl Link
Sourcepub async fn send(&self, packet: NetworkPacket)
pub async fn send(&self, packet: NetworkPacket)
Send a NetworkPacket to the linked device.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Link
impl RefUnwindSafe for Link
impl Send for Link
impl Sync for Link
impl Unpin for Link
impl UnsafeUnpin for Link
impl UnwindSafe for Link
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