pub struct InitStatus {
pub comms_status: CommsStatus,
pub dram_status: ComponentStatusInfo<Infallible, DramInitError>,
pub cpu_status: ComponentStatusInfo<Infallible, CpuInitError>,
pub arc_status: ComponentStatusInfo<Infallible, ArcInitError>,
pub eth_status: ComponentStatusInfo<EthernetPartialInitError, EthernetInitError>,
pub init_options: InitOptions,
pub unknown_state: bool,
}Fields§
§comms_status: CommsStatus§dram_status: ComponentStatusInfo<Infallible, DramInitError>§cpu_status: ComponentStatusInfo<Infallible, CpuInitError>§arc_status: ComponentStatusInfo<Infallible, ArcInitError>§eth_status: ComponentStatusInfo<EthernetPartialInitError, EthernetInitError>§init_options: InitOptions§unknown_state: boolWe cannot communicate with the chip prior to the initialization process. Therefore we start with the chip in an unknown state (all status is marked as not present).
Implementations§
Source§impl InitStatus
impl InitStatus
pub fn new_unknown() -> Self
pub fn can_communicate(&self) -> bool
pub fn is_waiting(&self) -> bool
pub fn init_complete(&self) -> bool
pub fn has_error(&self) -> bool
Trait Implementations§
Source§impl Clone for InitStatus
impl Clone for InitStatus
Source§fn clone(&self) -> InitStatus
fn clone(&self) -> InitStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InitStatus
impl Debug for InitStatus
Auto Trait Implementations§
impl Freeze for InitStatus
impl RefUnwindSafe for InitStatus
impl Send for InitStatus
impl Sync for InitStatus
impl Unpin for InitStatus
impl UnsafeUnpin for InitStatus
impl UnwindSafe for InitStatus
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