pub struct Provenance {
pub file: String,
pub line: usize,
pub key_path: Option<String>,
}Expand description
Where a DeviceConnection was decoded from.
Fields§
§file: StringThe source file (e.g. setupapi.dev.log, or the hive name SYSTEM).
line: usize1-based line number of the section header the record came from, for
line-oriented sources (setupapi.dev.log). 0 when the source is not
line-oriented (e.g. a registry hive — see key_path).
key_path: Option<String>The full registry key path the record was decoded from, for hive sources
(e.g. ControlSet001\Enum\SCSI\Disk&Ven_…\5&22be343f&0&000000). None for
line-oriented sources.
Trait Implementations§
Source§impl Clone for Provenance
impl Clone for Provenance
Source§fn clone(&self) -> Provenance
fn clone(&self) -> Provenance
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 Provenance
impl Debug for Provenance
impl Eq for Provenance
Source§impl PartialEq for Provenance
impl PartialEq for Provenance
impl StructuralPartialEq for Provenance
Auto Trait Implementations§
impl Freeze for Provenance
impl RefUnwindSafe for Provenance
impl Send for Provenance
impl Sync for Provenance
impl Unpin for Provenance
impl UnsafeUnpin for Provenance
impl UnwindSafe for Provenance
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