Skip to main content

Crate varta_client

Crate varta_client 

Source
Expand description

Varta agent API — Varta::connect opens a transport to the observer; Varta::beat emits a fire-and-forget 32-byte VLP frame with zero post-init heap traffic.

§Transports

The default transport is UdsTransport (Unix Domain Socket). Alternative transports are available behind feature flags (e.g. udp for UDP). The BeatTransport trait allows custom transport implementations.

The crate re-exports Frame, Status, and DecodeError from varta-vlp so downstream consumers depend on a single facade.

Re-exports§

pub use client::classify_send_error;
pub use client::BeatError;
pub use client::BeatOutcome;
pub use client::DropReason;
pub use client::Varta;
pub use transport::BeatTransport;
pub use transport::UdsTransport;

Modules§

client
Agent surface — Varta connects to the observer over a configured transport and beat() emits one fire-and-forget 32-byte VLP frame per call.
transport
Transport abstraction for VLP frame emission.

Structs§

Frame
On-wire health frame — exactly 32 bytes, 8-byte aligned, little-endian integer fields. The struct is repr(C) so its layout is ABI-stable across compilations and trivially verifiable by inspection.

Enums§

DecodeError
Error returned by Frame::decode and Status::try_from_u8.
Status
Health status reported by an agent in a single VLP frame.

Constants§

NONCE_TERMINAL
Sentinel nonce value reserved for terminal panic frames.