Error Handling & Logging
Error Types
Each crate defines its own error type:
GenicamError– high-level facade errorsGigeError– GVCP/GVSP transport errorsGenApiError– node evaluation and register I/O errorsGenCpError– GenCP protocol encoding errorsXmlError– XML parsing errors
All error types implement std::error::Error and Display.
Logging
The workspace uses the tracing crate for structured logging.
Enable it with:
#![allow(unused)]
fn main() {
tracing_subscriber::fmt::init();
}
Or set RUST_LOG=debug to see detailed protocol traces.