pub struct PortReading {
pub pad: PadState,
pub health: Health,
pub updates: u32,
pub faults: u32,
pub last_fault: Option<Fault>,
}Expand description
One port, as the game sees it.
Fields§
§pad: PadStateThe latest clean state: the pad’s, or PadState::NONE for an empty
socket.
health: HealthWhat the latest transaction found.
updates: u32Transactions that read a pad (or an empty socket) cleanly.
faults: u32Transactions that failed part way.
last_fault: Option<Fault>Why the latest failed transaction failed; kept after a clean one.
Implementations§
Source§impl PortReading
impl PortReading
Sourcepub const UNSEEN: PortReading
pub const UNSEEN: PortReading
A port nothing has been read from.
Trait Implementations§
Source§impl Clone for PortReading
impl Clone for PortReading
Source§fn clone(&self) -> PortReading
fn clone(&self) -> PortReading
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PortReading
impl Debug for PortReading
Source§impl PartialEq for PortReading
impl PartialEq for PortReading
impl Copy for PortReading
impl Eq for PortReading
impl StructuralPartialEq for PortReading
Auto Trait Implementations§
impl Freeze for PortReading
impl RefUnwindSafe for PortReading
impl Send for PortReading
impl Sync for PortReading
impl Unpin for PortReading
impl UnsafeUnpin for PortReading
impl UnwindSafe for PortReading
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)