#[non_exhaustive]pub enum GenicamError {
Show 30 variants
GenApi(GenApiError),
Xml(XmlError),
Gige {
during: &'static str,
source: GigeError,
},
U3v {
during: &'static str,
source: U3vError,
},
Network {
during: &'static str,
source: Error,
},
Io(Error),
Configuration(ParseConfigurationError),
Convert(ConvertError),
MissingChunkFeature(String),
UnsupportedPixelFormat(PixelFormat),
CommandNotDone {
name: String,
waited: Duration,
},
Timeout(Duration),
MissingFeature {
what: &'static str,
tried: &'static [&'static str],
},
NoEventSelection {
events: Vec<String>,
},
NotInControl(ControlState),
PacketTooSmall {
size: u32,
min: u32,
},
PacketTooLarge {
size: u32,
max: u32,
},
StreamChannel {
channel: u32,
count: Option<u32>,
},
PacketDelay {
delay: Duration,
problem: &'static str,
},
NoInterface,
InterfaceWithoutIpv4(String),
NoRoute {
camera: Ipv4Addr,
source: Error,
},
NotMulticast(SocketAddrV4),
TimeSync(&'static str),
NoBinningFactor {
feature: &'static str,
entry: String,
},
NoBinningEntry {
feature: &'static str,
factor: i64,
entries: Vec<String>,
},
UnsizedFrame {
pixel_format: String,
},
Panicked(&'static str),
Task {
during: &'static str,
source: JoinError,
},
InsideRuntime(&'static str),
}Expand description
Error type produced by the high level GenICam facade.
Every variant either carries what caused it as its
source — a GVCP status, a USB failure, a
socket’s error — or names what it refused with typed fields; nothing is
flattened into text (ADR-0030). The during of a transport variant says
what the facade was doing, such as "claim control".
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
GenApi(GenApiError)
A feature’s read, write or evaluation failed in the node map.
Xml(XmlError)
The camera’s GenApi XML could not be fetched or parsed.
Gige
A GigE Vision control transaction failed.
Fields
U3v
A USB3 Vision transaction failed.
Network
A socket operation failed: binding a stream or event socket, joining a multicast group, receiving.
Io(Error)
Reading or writing a file or stream failed.
Configuration(ParseConfigurationError)
A configuration file does not parse (see
Camera::load_features).
Convert(ConvertError)
A frame’s pixels could not be converted.
MissingChunkFeature(String)
Required chunk feature missing from the nodemap.
UnsupportedPixelFormat(PixelFormat)
The camera reported a pixel format without a conversion path.
CommandNotDone
A command was written but the camera did not report it finished
(GenICam IsDone) within the time allowed.
The write itself was acknowledged: the camera may still be acting on it, or its command register may never clear.
Timeout(Duration)
Nothing arrived within the time a blocking call was given.
MissingFeature
The camera declares none of the names a standard feature goes by.
Fields
NoEventSelection
Events were asked for on a camera whose XML has no
EventSelector/EventNotification; event selection has no bootstrap
register to fall back on.
NotInControl(ControlState)
The session does not hold control of the camera, so it neither writes nor configures a stream: it was opened as a monitor, or control was released or lost.
PacketTooSmall
A GVSP packet size below the smallest a stream accepts.
Fields
PacketTooLarge
A GVSP packet size above the largest an IPv4 datagram carries.
StreamChannel
A stream channel the camera does not have; count is its
GevNumberOfStreamChannels, when it says.
PacketDelay
An inter-packet delay that cannot be expressed in GevSCPD’s unit.
Fields
NoInterface
A stream needs a host interface to receive on, and none was given.
InterfaceWithoutIpv4(String)
The interface given has no IPv4 address.
NoRoute
No host interface routes to the camera; pass one explicitly.
NotMulticast(SocketAddrV4)
An address that is not a multicast group where one is needed: the group asked for, or where the camera streams to for a monitor.
TimeSync(&'static str)
Time calibration could not fit the camera’s clock.
NoBinningFactor
A binning enumeration entry names no factor (SVS’s On).
NoBinningEntry
No binning enumeration entry names the factor asked for.
Fields
UnsizedFrame
A frame cannot be sized: the camera has no PayloadSize, and the
pixel format declares no size.
Panicked(&'static str)
A thread panicked: one holding the device’s lock, which a panic poisons, or one the call ran on.
Task
A background task the call waited on panicked or was cancelled.
InsideRuntime(&'static str)
A blocking call was made inside an async runtime, which it would stall; use the async API there.
Trait Implementations§
Source§impl Debug for GenicamError
impl Debug for GenicamError
Source§impl Display for GenicamError
impl Display for GenicamError
Source§impl Error for GenicamError
impl Error for GenicamError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<ConvertError> for GenicamError
impl From<ConvertError> for GenicamError
Source§fn from(err: ConvertError) -> Self
fn from(err: ConvertError) -> Self
Source§impl From<Error> for GenicamError
impl From<Error> for GenicamError
Source§impl From<GenApiError> for GenicamError
impl From<GenApiError> for GenicamError
Source§fn from(source: GenApiError) -> Self
fn from(source: GenApiError) -> Self
Source§impl From<GigeError> for GenicamError
impl From<GigeError> for GenicamError
Source§impl From<ParseConfigurationError> for GenicamError
impl From<ParseConfigurationError> for GenicamError
Source§fn from(source: ParseConfigurationError) -> Self
fn from(source: ParseConfigurationError) -> Self
Source§impl From<U3vError> for GenicamError
Available on crate feature u3v only.
impl From<U3vError> for GenicamError
u3v only.