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 reset(&mut self)
fn reset(&mut self)
r10-W-19: without this, a stale interval/since from a previous
module survives into the next connection, so the resend cadence
negotiated with the OLD CAM keeps firing (or a leftover partial
since fires early) before the new module ever sends its own
date_time_enq.
Source§fn id(&self) -> ResourceId
fn id(&self) -> ResourceId
The resource this handler serves.
Source§fn on_apdu(&mut self, apdu: &[u8]) -> Result<ResourceOut>
fn on_apdu(&mut self, apdu: &[u8]) -> Result<ResourceOut>
An APDU arrived on this resource’s session.
Source§fn tick(&mut self, elapsed: Duration) -> Result<ResourceOut>
fn tick(&mut self, elapsed: Duration) -> Result<ResourceOut>
Logical time advanced (for resources with timers, e.g. date_time).
Source§fn on_open(&mut self) -> Result<ResourceOut>
fn on_open(&mut self) -> Result<ResourceOut>
The session for this resource just opened.
Auto Trait Implementations§
impl Forget for DateTime
impl Freeze for DateTime
impl Move 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