pub struct Context { /* private fields */ }
Expand description
The resource manager context is a representation of the state of the driver.
Implementations§
Source§impl Context
impl Context
Sourcepub fn establish_context(scope: ContextScope) -> Result<Context>
pub fn establish_context(scope: ContextScope) -> Result<Context>
Create a context and define the scope of this context
Sourcepub fn establish_context_auto() -> Result<Context>
pub fn establish_context_auto() -> Result<Context>
Create a context For when you dont want to choose the scope (alias to establish_context system)
Sourcepub fn get_handle(&self) -> SCARDCONTEXT
pub fn get_handle(&self) -> SCARDCONTEXT
Get the handle for this context
Sourcepub fn list_readers(&self) -> Result<Vec<Reader>>
pub fn list_readers(&self) -> Result<Vec<Reader>>
List all available readers
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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