Trait kernel::hil::date_time::DateTimeClient

source ·
pub trait DateTimeClient {
    // Required methods
    fn get_date_time_done(&self, datetime: Result<DateTimeValues, ErrorCode>);
    fn set_date_time_done(&self, result: Result<(), ErrorCode>);
}
Expand description

Callback handler for when current date is read or set.

Required Methods§

source

fn get_date_time_done(&self, datetime: Result<DateTimeValues, ErrorCode>)

Called when a date time reading has completed. Takes Ok(DateTime) of current date and passes it when scheduling an upcall. If an error is encountered it takes an Err(ErrorCode)

source

fn set_date_time_done(&self, result: Result<(), ErrorCode>)

Called when a date is set Takes Ok(()) if time is set correctly. Takes Err(ErrorCode) in case of an error

Implementors§