pub struct Peers(/* private fields */);Expand description
The list of peers online.
Includes all connected peers as well as the local device.
The order is deterministic between calls and between runs.
Implementations§
Source§impl Peers
impl Peers
Sourcepub unsafe fn into_u32(self) -> u32
pub unsafe fn into_u32(self) -> u32
Restore Peers from a primitive type (u32).
§Safety
For most applications, Peers and Peer types should be considered
opaque and agnostic of their internal representation.
However, some code interpreters written for Firefly in Rust
might need the ability to save values on virtual stack as primitive types,
and this is where this function comes in handy.
Trait Implementations§
Source§impl IntoIterator for Peers
impl IntoIterator for Peers
impl Copy for Peers
impl Eq for Peers
impl StructuralPartialEq for Peers
Auto Trait Implementations§
impl Freeze for Peers
impl RefUnwindSafe for Peers
impl Send for Peers
impl Sync for Peers
impl Unpin for Peers
impl UnwindSafe for Peers
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