pub struct PeripheralSource<'a> { /* private fields */ }Expand description
A HistorySource over decoded DeviceConnections from one origin.
A single peripheral-core parse call handles one origin at a time —
parse_setupapi, parse_registry, or parse_linux_syslog — so the caller
knows which SourceKind every connection in the batch came from and passes
it in. The adapter carries that verbatim onto each Claim’s provenance,
which is what drives the container / clock-locality reasoning downstream.
Implementations§
Source§impl<'a> PeripheralSource<'a>
impl<'a> PeripheralSource<'a>
Sourcepub fn new(conns: &'a [DeviceConnection], source: SourceKind) -> Self
pub fn new(conns: &'a [DeviceConnection], source: SourceKind) -> Self
Wrap decoded device connections, all from source (e.g.
SourceKind::SetupApi, SourceKind::Usbstor for the registry reader,
or SourceKind::LinuxKernelLog).
Trait Implementations§
Source§impl HistorySource for PeripheralSource<'_>
impl HistorySource for PeripheralSource<'_>
Auto Trait Implementations§
impl<'a> Freeze for PeripheralSource<'a>
impl<'a> RefUnwindSafe for PeripheralSource<'a>
impl<'a> Send for PeripheralSource<'a>
impl<'a> Sync for PeripheralSource<'a>
impl<'a> Unpin for PeripheralSource<'a>
impl<'a> UnsafeUnpin for PeripheralSource<'a>
impl<'a> UnwindSafe for PeripheralSource<'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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more