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§
Sourcefn get_date_time_done(&self, datetime: Result<DateTimeValues, ErrorCode>)
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)
Sourcefn set_date_time_done(&self, result: Result<(), ErrorCode>)
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