[][src]Struct clyde_3g_eps_service::models::subsystem::Subsystem

pub struct Subsystem {
    pub eps: Arc<Mutex<Box<dyn Clyde3gEps + Send>>>,
    pub last_mutation: Arc<RwLock<Mutations>>,
    pub errors: Arc<RwLock<Vec<String>>>,
    pub watchdog_handle: Arc<Mutex<JoinHandle<()>>>,
    pub checksum: Arc<Mutex<Checksum>>,
}

Main structure for controlling and accessing system resources

Fields

Underlying EPS object

Last mutation executed

Errors accumulated over all queries and mutations

Watchdog kicking thread handle

Last known checksum of EPS ROM

Methods

impl Subsystem
[src]

Create a new subsystem instance for the service to use

Create the underlying EPS object and then create a new subsystem which will use it

Get the requested telemetry item from the motherboard

Get the requested telemetry item from the daughterboard

Get the specific type of reset counts

Get the current watchdog period setting

Get the system version information

Get the current board status

Get the last error the EPS encountered

Get the current power state of the EPS

Trigger a manual reset of the EPS

Kick the I2C watchdog

Set the I2C watchdog timeout period

Pass raw command values through to the EPS

Run hardware tests to check system health

Record the last mutation executed by the service

Fetch all errors since the last time this function was called, then clear the errors storage

Trait Implementations

impl Clone for Subsystem
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Subsystem

impl Sync for Subsystem

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T> From for T
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Erased for T

impl<T> Same for T

Should always be Self