#[non_exhaustive]pub struct RunningDevice {
pub handle: DeviceHandle,
pub task: DeviceTask,
}Expand description
A device tree with its own connection.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.handle: DeviceHandlePresence, alerts, reconfiguration and shutdown.
task: DeviceTaskThe future the host spawns.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RunningDevice
impl !RefUnwindSafe for RunningDevice
impl !Sync for RunningDevice
impl !UnwindSafe for RunningDevice
impl Send for RunningDevice
impl Unpin for RunningDevice
impl UnsafeUnpin for RunningDevice
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