Skip to main content

Crate telegenic

Crate telegenic 

Source
Expand description

Pure-Rust GenICam camera library.

GenICamera exposes a device’s GenICam feature tree (Width, ExposureTime, PixelFormat, AcquisitionStart, …) by name, evaluated through the node graph of the device’s own description XML, plus acquisition helpers (start_acquisition, snap, snapshot_session).

Transports live in backend modules. The only backend today is gige (GigE Vision: GVCP control and GVSP streaming spoken directly, no vendor SDK); the feature layer is an enum over the transport so USB3 Vision can slot in later. Each channel runs a dedicated I/O thread; handles are cheap to clone and share it.

Re-exports§

pub use error::CameraError;
pub use error::GenicamError;
pub use error::Result;
pub use genicam::AccessMode;
pub use genicam::Acquisition;
pub use genicam::Features;
pub use genicam::GenICamera;
pub use genicam::NodeKind;
pub use genicam::SnapshotSession;
pub use gige::PixelFormat;
pub use gige::stream::Frame;
pub use gige::stream::FrameChannel;
pub use gige::stream::FrameStatus;
pub use gige::stream::PacketSize;
pub use gige::stream::PayloadKind;
pub use gige::stream::ResendPolicy;
pub use gige::stream::StreamChannel;
pub use gige::stream::StreamConfig;
pub use gige::stream::StreamStats;
pub use handle::ResponseHandle;
pub use wire::ControlRx;
pub use wire::ControlTelemetry;
pub use wire::ControlTx;
pub use wire::GvcpAck;
pub use wire::GvcpCmd;
pub use wire::GvspPacket;
pub use wire::StreamTelemetry;
pub use wire::TelemetrySink;
pub use fast_talker;

Modules§

error
The crate’s error taxonomy.
genicam
The GenICam feature layer: GenICamera wraps a transport camera and exposes the device’s feature tree (Width, ExposureTime, PixelFormat, AcquisitionStart, …) by name, evaluated through the device-description XML’s node graph.
gige
The GigE Vision backend: the GigECamera transport handle and its configuration, network discovery, the GVCP/GVSP wire formats (proto), and the GVSP stream receiver.
handle
The response handle returned by every GVCP transaction.
wire
Packet-level observation of a camera’s GigE Vision traffic.

Structs§

LinkStats
Cumulative link-health counters of one camera, across reconnects and stream channels. Unlike gige::LinkStats, which covers the current control connection only, these never reset.
ReportSummary
The lists of a Report without its guards, from Report::summary. Unlike a Report it is Send, Sync and Clone whenever the option type is (all of fast-talker’s are), so a worker thread can hand it to its caller. Dropping it releases nothing.
TuningReport
What a worker’s thread and socket options came to.

Enums§

SocketOption
One socket option. Apply a list with SocketOption::apply_all. Each variant sets the SocketOptions field of the same name; see there.
ThreadOption
One setting for a thread. Apply a list with ThreadOption::apply_all on the thread itself, or ThreadOption::apply_all_to for another.