pub struct StubSession { /* private fields */ }Expand description
Hardware-free session that refuses all live device operations.
Implementations§
Source§impl StubSession
impl StubSession
Sourcepub fn new(profile: DeviceProfile) -> Self
pub fn new(profile: DeviceProfile) -> Self
Builds a stub session for the supplied profile.
Trait Implementations§
Source§impl Clone for StubSession
impl Clone for StubSession
Source§fn clone(&self) -> StubSession
fn clone(&self) -> StubSession
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 StubSession
impl Debug for StubSession
impl Eq for StubSession
Source§impl ObservationSession for StubSession
impl ObservationSession for StubSession
Source§fn profile(&self) -> &DeviceProfile
fn profile(&self) -> &DeviceProfile
Returns the profile for this session.
Source§fn start(&mut self) -> DeviceResult<()>
fn start(&mut self) -> DeviceResult<()>
Starts sample processing.
Source§fn poll(&mut self, _kind: &str) -> DeviceResult<Option<Expr>>
fn poll(&mut self, _kind: &str) -> DeviceResult<Option<Expr>>
Polls one sample expression for
kind.Source§fn stop(&mut self) -> DeviceResult<()>
fn stop(&mut self) -> DeviceResult<()>
Stops sample processing and releases session resources.
Source§impl PartialEq for StubSession
impl PartialEq for StubSession
impl StructuralPartialEq for StubSession
Auto Trait Implementations§
impl Freeze for StubSession
impl RefUnwindSafe for StubSession
impl Send for StubSession
impl Sync for StubSession
impl Unpin for StubSession
impl UnsafeUnpin for StubSession
impl UnwindSafe for StubSession
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