pub trait DeviceSession: Send {
// Required methods
fn profile(&self) -> &DeviceProfile;
fn start(&mut self) -> Result<()>;
fn stop(&mut self) -> Result<()>;
}Expand description
Open device session used by a composed route.
Required Methods§
Sourcefn profile(&self) -> &DeviceProfile
fn profile(&self) -> &DeviceProfile
Returns the profile for this session.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".