pub struct StubProvider { /* private fields */ }Expand description
Hardware-free provider used when no concrete device provider is installed.
Implementations§
Source§impl StubProvider
impl StubProvider
Sourcepub fn new(profile: DeviceProfile) -> Self
pub fn new(profile: DeviceProfile) -> Self
Builds a stub provider for the supplied profile.
Sourcepub fn profile(&self) -> &DeviceProfile
pub fn profile(&self) -> &DeviceProfile
Returns the profile this stub advertises for browse and placement.
Sourcepub fn session(&self) -> StubSession
pub fn session(&self) -> StubSession
Builds an unopened stub session for provider-surface validation.
Trait Implementations§
Source§impl Clone for StubProvider
impl Clone for StubProvider
Source§fn clone(&self) -> StubProvider
fn clone(&self) -> StubProvider
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StubProvider
impl Debug for StubProvider
Source§impl DeviceProvider for StubProvider
impl DeviceProvider for StubProvider
Source§fn open(&self) -> DeviceResult<Box<dyn DeviceSession>>
fn open(&self) -> DeviceResult<Box<dyn DeviceSession>>
Opens a provider-owned device session.
impl Eq for StubProvider
Source§impl PartialEq for StubProvider
impl PartialEq for StubProvider
impl StructuralPartialEq for StubProvider
Auto Trait Implementations§
impl Freeze for StubProvider
impl RefUnwindSafe for StubProvider
impl Send for StubProvider
impl Sync for StubProvider
impl Unpin for StubProvider
impl UnsafeUnpin for StubProvider
impl UnwindSafe for StubProvider
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