[][src]Trait sunrise_libuser::time::RTCManager

pub trait RTCManager {
    fn get_rtc_time(
        &mut self,
        manager: WorkQueue<'static>
    ) -> Result<PosixTime, Error>;
fn get_rtc_event(
        &mut self,
        manager: WorkQueue<'static>
    ) -> Result<HandleRef<'static>, Error>; fn dispatch<'a>(
        &'a mut self,
        manager: WorkQueue<'static>,
        cmdid: u32,
        buf: &'a mut [u8]
    ) -> FutureObj<Result<(), Error>> { ... } }

RTC interface

Required methods

fn get_rtc_time(
    &mut self,
    manager: WorkQueue<'static>
) -> Result<PosixTime, Error>

Get the current RTC time

fn get_rtc_event(
    &mut self,
    manager: WorkQueue<'static>
) -> Result<HandleRef<'static>, Error>

Event triggered on RTC time update

Loading content...

Provided methods

fn dispatch<'a>(
    &'a mut self,
    manager: WorkQueue<'static>,
    cmdid: u32,
    buf: &'a mut [u8]
) -> FutureObj<Result<(), Error>>

Handle an incoming IPC request.

Loading content...

Implementors

Loading content...