pub struct DateTime { /* private fields */ }Expand description
Date-Time (§8.5.2) — host-provided. On date_time_enq replies with the
current UTC; if the enquiry’s response_interval is non-zero, re-sends every
response_interval seconds (driven by tick).
Implementations§
Trait Implementations§
Source§impl Resource for DateTime
impl Resource for DateTime
Source§fn id(&self) -> ResourceId
fn id(&self) -> ResourceId
The resource this handler serves.
Source§fn on_apdu(&mut self, apdu: &[u8]) -> ResourceOut
fn on_apdu(&mut self, apdu: &[u8]) -> ResourceOut
An APDU arrived on this resource’s session.
Source§fn tick(&mut self, elapsed: Duration) -> ResourceOut
fn tick(&mut self, elapsed: Duration) -> ResourceOut
Logical time advanced (for resources with timers, e.g. date_time).
Source§fn on_open(&mut self) -> ResourceOut
fn on_open(&mut self) -> ResourceOut
The session for this resource just opened.
Auto Trait Implementations§
impl Freeze for DateTime
impl RefUnwindSafe for DateTime
impl Send for DateTime
impl Sync for DateTime
impl Unpin for DateTime
impl UnsafeUnpin for DateTime
impl UnwindSafe for DateTime
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more