Skip to main content

Module stream_info

Module stream_info 

Source
Expand description

Target-independent StreamInfo + StreamOpt types.

Extracted from streaming (native-only) so that generated client code on wasm32 can reference StreamInfo without pulling in ZMQ/tokio deps.

Service codegen modules emit pub type StreamInfo = hyprstream_rpc::stream_info::StreamInfo; (and similar aliases for the StreamOpt axis types) rather than generating duplicates.

#273: StreamInfo, StreamOpt, and the five QoS axis unions are now fully code-generated from streaming.capnp into crate::streaming_types (the Cap’n Proto derive macro supports tagged-unions + data-carrying group arms). This module re-exports them as the canonical hub and keeps the hand-authored Job/Log/Pipe presets, which encode specific StreamOpt combinations.

Re-exports§

pub use crate::streaming_types::Completion;
pub use crate::streaming_types::Delivery;
pub use crate::streaming_types::Destination;
pub use crate::streaming_types::IrohReach;
pub use crate::streaming_types::MoqlServerIdentity;
pub use crate::streaming_types::Ordering;
pub use crate::streaming_types::OverflowPolicy;
pub use crate::streaming_types::QuicReach;
pub use crate::streaming_types::Retention;
pub use crate::streaming_types::Role;
pub use crate::streaming_types::StreamInfo;
pub use crate::streaming_types::StreamOpt;
pub use crate::streaming_types::TransportConfig;

Structs§

EventLive
Default event-bus delivery (#606).
EventReliable
Reliable event-bus delivery (#606).
Job
Inference / job streams.
Log
Log / notification streams.
Pipe
Pipe / console streams.

Traits§

StreamOptPreset
Marker trait for typed stream QoS presets.