pub struct Peer(/* private fields */);Implementations§
Source§impl Peer
Represents a specific device (or combination of such).
impl Peer
Represents a specific device (or combination of such).
Used for reading and writing state of a device: input, stash, scores, etc.
Source§impl Peer
impl Peer
Sourcepub unsafe fn into_u8(self) -> u8
pub unsafe fn into_u8(self) -> u8
Restore Peer from a primitive type (u8).
§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§
impl Copy for Peer
impl Eq for Peer
impl StructuralPartialEq for Peer
Auto Trait Implementations§
impl Freeze for Peer
impl RefUnwindSafe for Peer
impl Send for Peer
impl Sync for Peer
impl Unpin for Peer
impl UnwindSafe for Peer
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