pub struct ReportRequest {
pub tool: String,
pub notes: Vec<String>,
pub target: ReportTarget,
pub iface: Option<IfaceSelector>,
pub discovery_timeout: Duration,
pub include_xml: bool,
}Expand description
What to put in a report.
Fields§
§tool: StringThe tool writing the report and its version, such as
"viva-camctl 0.7.0"; the report’s first line of evidence.
notes: Vec<String>Further lines for the environment section, such as the mode a viewer runs in or the camera it is connected to.
target: ReportTargetWhich camera to describe in detail: its registers, XML and features.
iface: Option<IfaceSelector>Discover on this interface only; None broadcasts on every one.
discovery_timeout: DurationHow long discovery waits for answers.
include_xml: boolInclude the GenApi XML. It is the single most useful artifact, so a caller should leave it on unless the user asks otherwise.
Implementations§
Source§impl ReportRequest
impl ReportRequest
Sourcepub fn new(tool: impl Into<String>, target: ReportTarget) -> Self
pub fn new(tool: impl Into<String>, target: ReportTarget) -> Self
A report by tool on every camera discovery finds, describing
target in detail, with the XML.
Trait Implementations§
Source§impl Clone for ReportRequest
impl Clone for ReportRequest
Auto Trait Implementations§
impl Freeze for ReportRequest
impl RefUnwindSafe for ReportRequest
impl Send for ReportRequest
impl Sync for ReportRequest
impl Unpin for ReportRequest
impl UnsafeUnpin for ReportRequest
impl UnwindSafe for ReportRequest
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