pub struct ResourceManager { /* private fields */ }Expand description
Resource Manager (§8.4.1) — host-provided. Drives the profile exchange and,
once complete, reports Notification::CamReady and asks the host to open
the module-provided resources it understands.
Implementations§
Source§impl ResourceManager
impl ResourceManager
Sourcepub fn new(host_resources: Vec<ResourceId>) -> Self
pub fn new(host_resources: Vec<ResourceId>) -> Self
New RM advertising host_resources in its profile reply.
Sourcepub fn module_resources(&self) -> &[ResourceId]
pub fn module_resources(&self) -> &[ResourceId]
Resources the module advertised (valid once the profile exchange ran).
Trait Implementations§
Source§impl Debug for ResourceManager
impl Debug for ResourceManager
Source§impl Resource for ResourceManager
impl Resource for ResourceManager
Source§fn id(&self) -> ResourceId
fn id(&self) -> ResourceId
The resource this handler serves.
Source§fn on_open(&mut self) -> ResourceOut
fn on_open(&mut self) -> ResourceOut
The session for this resource just opened.
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).
Auto Trait Implementations§
impl Freeze for ResourceManager
impl RefUnwindSafe for ResourceManager
impl Send for ResourceManager
impl Sync for ResourceManager
impl Unpin for ResourceManager
impl UnsafeUnpin for ResourceManager
impl UnwindSafe for ResourceManager
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