Skip to main content

Crate live_stream

Crate live_stream 

Source
Expand description

§live-stream

Consumer SDK for browsing and subscribing to live data feeds served by the companion [live-feed] publisher crate. A consumer connects to a publisher endpoint, fetches the manifest, constructs a subscription, and receives typed batches.

Re-exports§

pub use builder::SubscriptionBuilder;
pub use catalog::FeedCatalog;

Modules§

builder
Builder for SubscriptionDescriptor.
catalog
Browseable view over a parsed manifest.

Structs§

Capabilities
What the publisher is willing to do server-side when accepting a subscription.
Endpoint
Identifies where a consumer should connect to read a feed.
FeedDescriptor
Single named live feed, as advertised by a publisher.
FeedManifest
Snapshot of everything a publisher currently exposes.
FieldSpec
One field in a WireSchema.
Sampling
Optional sampling policy that can be applied server-side.
SubscribeAck
Successful subscription. Tells the consumer where to read from and what to expect.
SubscribeError
Reason a subscription was refused.
SubscriptionDescriptor
Request to open one feed.
TransportPreference
Ordered transport preference list, most-preferred first.
WireSchema
Ordered list of fields that make up a feed’s schema.

Enums§

Error
FilterExpr
Server-side filter expression.
FormatPreference
Format the publisher will emit batches in once a subscription is accepted.
SubscribeErrorCode
SubscribeResponse
Publisher’s reply to a SubscriptionDescriptor.
TransportTag
One of the transports a feed can be exposed over.

Constants§

CONTROL_TAG_FEEDS
Control-channel tag used by a consumer to request the manifest.
CONTROL_TAG_SUBSCRIBE
Control-channel tag used by a consumer to open a subscription.
PROTOCOL_VERSION
Wire protocol version negotiated between publishers and consumers.

Type Aliases§

Result