#[non_exhaustive]pub enum ReportTarget {
None,
Ip(Ipv4Addr),
Index(usize),
Open(OpenCamera),
}Expand description
The camera a report describes in detail.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
None: the report covers the host and discovery only.
Ip(Ipv4Addr)
The camera at this address, whether discovery saw it or not — a camera that discovery misses but that answers on a known address is itself worth reporting.
Index(usize)
The nth camera discovery found.
Open(OpenCamera)
A camera the caller already holds open. A USB3 Vision device admits one owner, so the report cannot open it a second time the way it opens a GigE Vision camera’s control channel; the caller hands over what it read instead (backlog DX-06).
Trait Implementations§
Source§impl Clone for ReportTarget
impl Clone for ReportTarget
Source§impl Debug for ReportTarget
impl Debug for ReportTarget
impl Eq for ReportTarget
Source§impl PartialEq for ReportTarget
impl PartialEq for ReportTarget
impl StructuralPartialEq for ReportTarget
Auto Trait Implementations§
impl Freeze for ReportTarget
impl RefUnwindSafe for ReportTarget
impl Send for ReportTarget
impl Sync for ReportTarget
impl Unpin for ReportTarget
impl UnsafeUnpin for ReportTarget
impl UnwindSafe for ReportTarget
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.