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 reset(&mut self)
fn reset(&mut self)
r10-W-19: without this, ready/module_profiled stay latched from a
prior handshake, so a second profile (e.g. after a hot-plug
re-insert routed through a fresh Init) never re-opens the
profile_change/CamReady gate — the module then idles forever
(on_apdu’s doc comment above).
Source§fn id(&self) -> ResourceId
fn id(&self) -> ResourceId
The resource this handler serves.
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 ResourceManager
impl Freeze for ResourceManager
impl Move 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