[][src]Struct manager::State

struct State {
    cfg: Config,
    pi: Connection,
    ksmode_output: Receiver<Mode>,
    mode: OverallMode,
    shutdownreq: ShutdownTracker,
    ledchannel: Sender<Led>,
}

Fields

cfg: Configpi: Connectionksmode_output: Receiver<Mode>mode: OverallModeshutdownreq: ShutdownTrackerledchannel: Sender<Led>

Methods

impl State[src]

async fn new_mode<'_>(&'_ mut self) -> Result<(), Error>[src]

async fn run_telinit<'_, '_>(
    &'_ mut self,
    runlevel: &'_ str
) -> Result<(), Error>
[src]

async fn telinit<'_>(&'_ mut self) -> Result<(), Error>[src]

fn led(&mut self, l: Led) -> Result<(), Error>[src]

async fn run_app<'_>(&'_ mut self, ksm: Mode) -> Result<(), Error>[src]

async fn operate<'_>(&'_ mut self) -> Result<(), Error>[src]

Auto Trait Implementations

impl !RefUnwindSafe for State

impl Send for State

impl Sync for State

impl Unpin for State

impl !UnwindSafe for State

Blanket Implementations

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

impl<T, I> AsResult<T, I> for T where
    I: Input
[src]

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

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

impl<T> From<T> for T[src]

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

impl<T> IntoCollection<T> for T[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any
[src]