pub struct DeviceSource<'a> { /* private fields */ }Expand description
A DeviceSource wraps a borrowed slice of decoded device connections.
Each connection becomes an Action::Connected UserActivity whose
Subject::Device carries the device instance id and the volume serial, so
the v0.2 LNK/shellbag join can light up.
Implementations§
Source§impl<'a> DeviceSource<'a>
impl<'a> DeviceSource<'a>
Sourcepub fn new(connections: &'a [DeviceConnection]) -> Self
pub fn new(connections: &'a [DeviceConnection]) -> Self
Wrap decoded device connections.
Trait Implementations§
Source§impl ActivitySource for DeviceSource<'_>
impl ActivitySource for DeviceSource<'_>
Source§fn activities(&self) -> Vec<UserActivity>
fn activities(&self) -> Vec<UserActivity>
The activities this source contributes to the timeline.
Auto Trait Implementations§
impl<'a> Freeze for DeviceSource<'a>
impl<'a> RefUnwindSafe for DeviceSource<'a>
impl<'a> Send for DeviceSource<'a>
impl<'a> Sync for DeviceSource<'a>
impl<'a> Unpin for DeviceSource<'a>
impl<'a> UnsafeUnpin for DeviceSource<'a>
impl<'a> UnwindSafe for DeviceSource<'a>
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