Expand description
§rusteron-media-driver
rusteron-media-driver provides a fast, idiomatic Rust API over the Aeron C Media
Driver, which manages low-latency messaging between producers and consumers. Run
it as a standalone process or embed it in a Rust application.
For production deployments, we recommend the Aeron Java or C media driver. The embedded version here is best suited to integration tests and lightweight environments.
§Sponsored by GSR
Rusteron is sponsored and maintained by GSR, a global leader in algorithmic trading and market making in digital assets.
Rusteron has been running in production in GSR’s low-latency trading system since the beginning of 2025. It is mature and battle tested.
It is developed under the GSR GitHub organisation. We welcome contributions, feedback and discussion. To integrate or contribute, open an issue or reach out directly.
§Installation
To use rusteron-media-driver, add the appropriate dependency to your Cargo.toml:
Dynamic
[dependencies]
rusteron-media-driver = "0.2"Static
[dependencies]
rusteron-media-driver = { version = "0.2", features = ["static"] }Static with precompiled C libs (macOS / Linux)
[dependencies]
rusteron-media-driver = { version = "0.2", features = ["static", "precompile"] }[dependencies]
rusteron-media-driver = { version = "0.2", features = ["static", "precompile-rustls"] }The default source build compiles the Aeron C libraries. Dynamic builds also need
those shared libraries available at runtime; static embeds them in the binary.
See BUILD.md for prerequisites.
§Usage examples
Use AeronErrorHandlerSlot to replace callbacks without registering again.
Old callbacks are freed after their last call. See the
example.
Standard Media Driver
// A standalone media driver; `cargo run -p rusteron-media-driver --bin media_driver` ships the same.
use rusteron_media_driver::*;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let context = AeronDriverContext::new()?;
context.set_dir(c"target/aeron")?;
let driver = AeronDriver::new(&context)?;
driver.start(true)?; // run the conductor duty cycle on this thread
println!("media driver running in {}", context.get_dir());
loop {
driver.main_idle_strategy(driver.main_do_work()?);
}
}Embedded Media Driver
// Embeds the media driver in this process: unique directory, stopped and joined on drop.
use rusteron_media_driver::testing::EmbeddedDriver;
use rusteron_media_driver::Aeron;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let driver = EmbeddedDriver::launch()?; // or EmbeddedDriver::launch_with(|ctx| { /* tune ctx */ Ok(()) })
// Applications usually connect with rusteron_client::Aeron::connect_dir(driver.dir()).
let aeron = Aeron::connect_dir(driver.dir())?;
// add publications / subscriptions on `aeron` ...
drop(aeron); // close the client before the driver stops
Ok(())
}For a caller-built AeronDriverContext, AeronDriver::launch_embedded_guard(ctx, false) is the RAII form (stops and joins on drop).
§UDP polling and send batches
Aeron 1.54 lets the C driver configure the threshold for iterating over sockets directly instead of using the platform poller. It also limits how many times each ready socket is polled in one duty cycle. Configure these before creating the driver.
use rusteron_media_driver::{AeronCError, AeronDriverContext};
let context = AeronDriverContext::new()?;
context.set_udp_channel_transport_poller_iteration_threshold(5)?;
context.set_udp_channel_transport_poller_socket_poll_limit(4)?;
context.set_sender_io_vector_capacity(64)?;
context.set_network_publication_max_messages_per_send(4)?;The socket poll limit defaults to 4. A send batch must fit within
sender_io_vector_capacity. Driver initialization rejects a larger batch. The
maximum send batch is 64 messages.
§Building C against Aeron’s headers
Some driver extensions are C compiled against Aeron’s own headers. The main one is a custom
UDP transport, such as kernel bypass with DPDK or ef_vi. It fills in Aeron’s
aeron_udp_channel_transport_bindings_t and is installed with
AeronDriverContext::set_udp_channel_transport_bindings. That C must see the headers of the
Aeron this crate builds, or the structs it fills in will not match the driver’s, and those
headers exist only in this crate’s vendored Aeron sources. So the crate declares
links = "aeron_driver", and Cargo hands their paths to the build script of every crate that
depends on it directly:
| Variable | Directory |
|---|---|
DEP_AERON_DRIVER_INCLUDE | the media driver’s headers |
DEP_AERON_DRIVER_CLIENT_INCLUDE | the client headers they include |
DEP_AERON_DRIVER_AERON_ROOT | the Aeron source tree |
// build.rs of a crate that depends on rusteron-media-driver
fn main() {
let dep = |key: &str| std::env::var(format!("DEP_AERON_DRIVER_{key}")).unwrap();
cc::Build::new()
.file("transport.c")
.include(dep("INCLUDE"))
.include(dep("CLIENT_INCLUDE"))
.compile("my_transport");
}Cargo allows one package per links name in a build. Two
semver-incompatible versions of rusteron-media-driver cannot share a dependency graph. The
workspace crate links-test compiles a C file against these paths, to check that these
header paths work.
§Contributing and license
See the root README and CONTRIBUTING.md. Build requirements are in BUILD.md. Dual-licensed under MIT or Apache-2.0.
§Acknowledgments
Special thanks to:
- @mimran1980, a core low-latency developer at GSR and the original creator of Rusteron. Your work made this possible.
- @bspeice for the original
libaeron-sys - The Aeron community for the open protocol
§Features
static: Statically links the Aeron C code. By default, the library links the Aeron C libraries dynamicallybacktrace: Logs a backtrace for eachAeronCErrorextra-logging: Logs when a resource is created and destroyed. Useful if you’re seeing a segfault due to a resource being closedlog-c-bindings: Logs every C binding call with arguments and return values. Useful for debugging FFI interactionsprecompile: Uses precompiled C code instead of requiring cmake and java to be installed
Modules§
Macros§
- cformat
format!for C strings: builds the formattedStringand converts it to aCStringin one visibly-named step.
Structs§
- Addrinfo
- Aeron
- Aeron
Agent Close Func Logger - Aeron
Agent Close Func Slot - A callback you can replace without registering another handler.
- Aeron
Agent DoWork Func Logger - Aeron
Agent DoWork Func Slot - A callback you can replace without registering another handler.
- Aeron
Agent Runner - Aeron
Agent Start Func Logger - Aeron
Agent Start Func Slot - A callback you can replace without registering another handler.
- Aeron
Archive Recording Position KeyLayout - Aeron
Async AddCounter - Aeron
Async AddExclusive Publication - Aeron
Async AddPublication - Aeron
Async AddSubscription - Aeron
Async Destination - Aeron
Async Destination ById - Aeron
Async GetNext Available Session Id - Aeron
Atomic Counter - Aeron
Available Counter Logger - Aeron
Available Counter Pair - Aeron
Available Counter Slot - A callback you can replace without registering another handler.
- Aeron
Available Image Logger - Aeron
Available Image Slot - A callback you can replace without registering another handler.
- Aeron
Block Handler Logger - Aeron
Block Handler Slot - A callback you can replace without registering another handler.
- Aeron
Broadcast Descriptor - Aeron
Broadcast Record Descriptor - Aeron
Broadcast Transmitter - Aeron
Buffer Claim - Structure used to hold information for a try_claim function call.
- AeronC
Error - Aeron C API error: code + optional message.
- Aeron
Channel Endpoint Status KeyLayout - Aeron
Claim - Zero-copy claim on a publication’s term buffer with a RAII commit-or-abort lifecycle.
- Aeron
Client - Aeron
Client Registering Resource - Aeron
Client Timeout - Aeron
Clock Cache - Aeron
Close Client Logger - Aeron
Close Client Pair - Aeron
Close Client Slot - A callback you can replace without registering another handler.
- Aeron
Cnc - Aeron
CncConstants - Aeron
CncMetadata - Aeron
Congestion Control Strategy - Aeron
Congestion Control Strategy Initial Window Length Func Logger - Aeron
Congestion Control Strategy Initial Window Length Func Slot - A callback you can replace without registering another handler.
- Aeron
Congestion Control Strategy MaxWindow Length Func Logger - Aeron
Congestion Control Strategy MaxWindow Length Func Slot - A callback you can replace without registering another handler.
- Aeron
Congestion Control Strategy Rttm Func Logger - Aeron
Congestion Control Strategy Rttm Func Slot - A callback you can replace without registering another handler.
- Aeron
Congestion Control Strategy Rttm Sent Func Logger - Aeron
Congestion Control Strategy Rttm Sent Func Slot - A callback you can replace without registering another handler.
- Aeron
Congestion Control Strategy Should Measure RttFunc Logger - Aeron
Congestion Control Strategy Should Measure RttFunc Slot - A callback you can replace without registering another handler.
- Aeron
Context - Aeron
Controlled Fragment Assembler - Aeron
Controlled Fragment Closure Assembler - Aeron
Controlled Fragment Handler Logger - Aeron
Controlled Fragment Handler Slot - A callback you can replace without registering another handler.
- Aeron
Correlated Command - Aeron
Counter - Aeron
Counter Command - Aeron
Counter Constants - Configuration for a counter that does not change during its lifetime.
- Aeron
Counter Link - Aeron
Counter Metadata Descriptor - Aeron
Counter Update - Aeron
Counter Value Descriptor - Aeron
Counters Manager - Aeron
Counters Reader - Aeron
Counters Reader Buffers - Aeron
Counters Reader Foreach Counter Func Logger - Aeron
Counters Reader Foreach Counter Func Slot - A callback you can replace without registering another handler.
- Aeron
Counters Reader Foreach Metadata Func Logger - Aeron
Counters Reader Foreach Metadata Func Slot - A callback you can replace without registering another handler.
- Aeron
Data Header - Aeron
Data Header AsLongs - Aeron
Data Packet Dispatcher - Aeron
Data Packet Dispatcher Stream Interest - Aeron
Deque - Aeron
Destination ById Command - Aeron
Destination Command - Aeron
Distinct Error Log - Aeron
Distinct Error LogObservation List - Aeron
Distinct Observation - Aeron
DlLoaded Libs State - Aeron
Driver - Aeron
Driver Conductor - Aeron
Driver Conductor Client Command - Aeron
Driver Conductor Driver Command - Aeron
Driver Conductor Proxy - Aeron
Driver Context - Aeron
Driver Context Bindings Clientd Entry - Aeron
Driver Managed Resource - Aeron
Driver Native Resource Agent - Aeron
Driver Native Resource Agent Command Result - Aeron
Driver Native Resource Agent Proxy - Aeron
Driver Native Resource Agent Proxy CmdFree LogBuffer - Aeron
Driver Native Resource Agent Proxy CmdMap LogBuffer - Aeron
Driver Native Resource Agent Proxy CmdParse Channel - Aeron
Driver Native Resource Agent Proxy CmdResolve Address - Aeron
Driver Receiver - Aeron
Driver Receiver Image Entry - Aeron
Driver Receiver Pending Setup Entry - Aeron
Driver Receiver Proxy - Aeron
Driver Sender - Aeron
Driver Sender Network Publication Entry - Aeron
Driver Sender Proxy - Aeron
Driver Termination Hook Func Logger - Aeron
Driver Termination Hook Func Slot - A callback you can replace without registering another handler.
- Aeron
Driver Termination Validator Func Logger - Aeron
Driver Termination Validator Func Slot - A callback you can replace without registering another handler.
- Aeron
Driver UriPublication Params - Aeron
Driver UriSubscription Params - Aeron
Duty Cycle Stall Tracker - Aeron
Duty Cycle Tracker - Aeron
Duty Cycle Tracker Measure AndUpdate Func Logger - Aeron
Duty Cycle Tracker Measure AndUpdate Func Slot - A callback you can replace without registering another handler.
- Aeron
Duty Cycle Tracker Update Func Logger - Aeron
Duty Cycle Tracker Update Func Slot - A callback you can replace without registering another handler.
- Aeron
EndOf Life Resource - Aeron
EndOf Life Resource Free Logger - Aeron
EndOf Life Resource Free Slot - A callback you can replace without registering another handler.
- Aeron
Error Handler Logger - Aeron
Error Handler Slot - A callback you can replace without registering another handler.
- Aeron
Error Header - Aeron
Error LogEntry - Aeron
Error LogReader Func Logger - Aeron
Error LogReader Func Slot - A callback you can replace without registering another handler.
- Aeron
Error Logger - Production error handler that routes Aeron async errors through the Rust
logfacade at error level with a concise format. This is the recommended default forAeronContext::set_error_handler. - Aeron
Error Response - Aeron
Exclusive Publication - Aeron
Feedback Delay Generator State - Aeron
Flow Control MaxOptions - Aeron
Flow Control Strategy - Aeron
Flow Control Strategy Error Func Logger - Aeron
Flow Control Strategy Error Func Slot - A callback you can replace without registering another handler.
- Aeron
Flow Control Strategy Idle Func Logger - Aeron
Flow Control Strategy Idle Func Slot - A callback you can replace without registering another handler.
- Aeron
Flow Control Strategy MaxRetransmission Length Func Logger - Aeron
Flow Control Strategy MaxRetransmission Length Func Slot - A callback you can replace without registering another handler.
- Aeron
Flow Control Strategy Setup Func Logger - Aeron
Flow Control Strategy Setup Func Slot - A callback you can replace without registering another handler.
- Aeron
Flow Control Strategy SmFunc Logger - Aeron
Flow Control Strategy SmFunc Slot - A callback you can replace without registering another handler.
- Aeron
Flow Control Strategy Supplier Func Table Entry - Aeron
Flow Control Strategy Trigger Send Setup Func Logger - Aeron
Flow Control Strategy Trigger Send Setup Func Slot - A callback you can replace without registering another handler.
- Aeron
Flow Control Tagged Options - Aeron
Fprintf Handler Logger - Aeron
Fprintf Handler Slot - A callback you can replace without registering another handler.
- Aeron
Fragment Assembler - Aeron
Fragment Closure Assembler - Aeron
Fragment Handler Logger - Aeron
Fragment Handler Slot - A callback you can replace without registering another handler.
- Aeron
Frame Header - Aeron
GetNext Available Session IdCommand - Aeron
Header - Aeron
Header Values - Aeron
Header Values Frame - Aeron
Heartbeat Timestamp KeyLayout - Aeron
Idle Strategy - Aeron
Idle Strategy Func Logger - Aeron
Idle Strategy Func Slot - A callback you can replace without registering another handler.
- Aeron
Ifaddr Func Logger - Aeron
Ifaddr Func Slot - A callback you can replace without registering another handler.
- Aeron
Image - Aeron
Image Buffers Ready - Aeron
Image Constants - Configuration for an image that does not change during it’s lifetime.
- Aeron
Image Controlled Fragment Assembler - Aeron
Image Fragment Assembler - Aeron
Image Message - Aeron
Int64 Counter Map - Aeron
Int64 Counter MapFor Each Func Logger - Aeron
Int64 Counter MapFor Each Func Slot - A callback you can replace without registering another handler.
- Aeron
Int64 Counter MapPredicate Func Logger - Aeron
Int64 Counter MapPredicate Func Slot - A callback you can replace without registering another handler.
- Aeron
Int64 ToPtr Hash Map - Aeron
Int64 ToPtr Hash MapFor Each Func Logger - Aeron
Int64 ToPtr Hash MapFor Each Func Slot - A callback you can replace without registering another handler.
- Aeron
Int64 ToPtr Hash MapPredicate Func Logger - Aeron
Int64 ToPtr Hash MapPredicate Func Slot - A callback you can replace without registering another handler.
- Aeron
Int64 ToTagged PtrEntry - Aeron
Int64 ToTagged PtrHash Map - Aeron
Int64 ToTagged PtrHash MapFor Each Func Logger - Aeron
Int64 ToTagged PtrHash MapFor Each Func Slot - A callback you can replace without registering another handler.
- Aeron
Int64 ToTagged PtrHash MapPredicate Func Logger - Aeron
Int64 ToTagged PtrHash MapPredicate Func Slot - A callback you can replace without registering another handler.
- Aeron
Iovec - Aeron
IpcChannel Params - Aeron
IpcPublication - Aeron
IpcPublication Entry - Aeron
Linger Resource Entry - Aeron
Local Sockaddr KeyLayout - Aeron
LogBuffer - Aeron
Logbuffer Metadata - Aeron
Loss Detector - Aeron
Loss Detector Gap - Aeron
Loss Generator - Aeron
Loss Generator Should Drop Frame Detailed Func Logger - Aeron
Loss Generator Should Drop Frame Detailed Func Slot - A callback you can replace without registering another handler.
- Aeron
Loss Generator Should Drop Frame Simple Func Logger - Aeron
Loss Generator Should Drop Frame Simple Func Slot - A callback you can replace without registering another handler.
- Aeron
Loss Reporter - Aeron
Loss Reporter Entry - Aeron
Loss Reporter Read Entry Func Logger - Aeron
Loss Reporter Read Entry Func Slot - A callback you can replace without registering another handler.
- Aeron
Mapped Buffer - Aeron
Mapped File - Aeron
Mapped RawLog - Aeron
Mpsc Rb - Aeron
NakHeader - Aeron
Named Interface - Aeron
Network Publication - Aeron
Network Publication Entry - Aeron
NewPublication Logger - Aeron
NewPublication Slot - A callback you can replace without registering another handler.
- Aeron
NewSubscription Logger - Aeron
NewSubscription Slot - A callback you can replace without registering another handler.
- Aeron
Next Available Session IdResponse - Aeron
Notification Logger - Aeron
Notification Slot - A callback you can replace without registering another handler.
- Aeron
Operation Succeeded - Aeron
Option Header - Aeron
Parsed Address - Aeron
Parsed Interface - Aeron
PerThread Error - Aeron
Port Manager - Aeron
Port Manager Free Managed Port Func Logger - Aeron
Port Manager Free Managed Port Func Slot - A callback you can replace without registering another handler.
- Aeron
Port Manager GetManaged Port Func Logger - Aeron
Port Manager GetManaged Port Func Slot - A callback you can replace without registering another handler.
- Aeron
Position - Aeron
Publication - Aeron
Publication Buffers Ready - Aeron
Publication Command - Aeron
Publication Constants - Configuration for a publication that does not change during it’s lifetime.
- Aeron
Publication Error - Aeron
Publication Error Frame Handler Logger - Aeron
Publication Error Frame Handler Slot - A callback you can replace without registering another handler.
- Aeron
Publication Error Values - Aeron
Publication Image - Aeron
Publication Image Connection - Aeron
Publication Image Entry - Aeron
Publication Link - Aeron
Queue Drain Func Logger - Aeron
Queue Drain Func Slot - A callback you can replace without registering another handler.
- Aeron
RbControlled Handler Logger - Aeron
RbControlled Handler Slot - A callback you can replace without registering another handler.
- Aeron
RbDescriptor - Aeron
RbHandler Logger - Aeron
RbHandler Slot - A callback you can replace without registering another handler.
- Aeron
RbRecord Descriptor - Aeron
Receive Channel Endpoint - Aeron
Receive Channel Endpoint Entry - Aeron
Receive Channel Loss Supplier Func Logger - Aeron
Receive Channel Loss Supplier Func Slot - A callback you can replace without registering another handler.
- Aeron
Receive Destination - Aeron
Receive Destination Entry - Aeron
Reject Image Command - Aeron
Remove Counter Command - Aeron
Remove Publication Command - Aeron
Remove Subscription Command - Aeron
Reserved Value Supplier Logger - Aeron
Reserved Value Supplier Slot - A callback you can replace without registering another handler.
- Aeron
Resolution Header - Aeron
Resolution Header Ipv4 - Aeron
Resolution Header Ipv6 - Aeron
Response Setup Header - Aeron
Retransmit Action - Aeron
Retransmit Handler - Aeron
Retransmit Handler Resend Func Logger - Aeron
Retransmit Handler Resend Func Slot - A callback you can replace without registering another handler.
- Aeron
Rttm Header - Aeron
Send Channel Endpoint - Aeron
Send Channel Endpoint Entry - Aeron
Send Channel Loss Supplier Func Logger - Aeron
Send Channel Loss Supplier Func Slot - A callback you can replace without registering another handler.
- Aeron
Setup Header - Aeron
Spsc Concurrent Array Queue - Aeron
Spsc Rb - Aeron
Static Counter Command - Aeron
Static Counter Response - Aeron
Status Message Header - Aeron
Status Message Optional Header - Aeron
Status Tracker - Status transition tracker that emits only when the observed
AeronStatusdiffers from the previously recorded state. - Aeron
StrTo PtrHash Map - Aeron
StrTo PtrHash MapFor Each Func Logger - Aeron
StrTo PtrHash MapFor Each Func Slot - A callback you can replace without registering another handler.
- Aeron
StrTo PtrHash MapKey - Aeron
Stream Position Counter KeyLayout - Aeron
Subscribable - Aeron
Subscribable List Entry - Aeron
Subscription - Aeron
Subscription Command - Aeron
Subscription Constants - Aeron
Subscription Link - Aeron
Subscription Ready - Aeron
System Counter - Aeron
System Counters - Aeron
Term GapScanner GapDetected Func Logger - Aeron
Term GapScanner GapDetected Func Slot - A callback you can replace without registering another handler.
- Aeron
Terminate Driver Command - Aeron
Tetherable Position - Aeron
UdpChannel - Aeron
UdpChannel Async Parse - Aeron
UdpChannel Data Paths - Aeron
UdpChannel Incoming Interceptor - Aeron
UdpChannel Interceptor Bindings - Aeron
UdpChannel Outgoing Interceptor - Aeron
UdpChannel Params - Aeron
UdpDestination Entry - Aeron
UdpDestination Tracker - Aeron
Unavailable Counter Logger - Aeron
Unavailable Counter Pair - Aeron
Unavailable Counter Slot - A callback you can replace without registering another handler.
- Aeron
Unavailable Image Logger - Aeron
Unavailable Image Slot - A callback you can replace without registering another handler.
- Aeron
Uri - Aeron
UriHostname Resolver Func Logger - Aeron
UriHostname Resolver Func Slot - A callback you can replace without registering another handler.
- Aeron
UriParam - Aeron
UriParams - Aeron
UriParse Callback Logger - Aeron
UriParse Callback Slot - A callback you can replace without registering another handler.
- Aeron
UriString Builder - Aeron
Wildcard Port Manager - Atomic
Wide Counter Bindgen Ty1 - Backoff
Idle Strategy - Adaptive backoff: spin a few times, then yield a few times, then sleep with an exponentially
growing park up to a max. A good general-purpose strategy. (Aeron
BackoffIdleStrategy.) - Busy
Spin Idle Strategy - Spin with a CPU pause hint. Lowest latency, pins a core. (Aeron
BusySpinIdleStrategy.) - Callback
Slot - Lets you replace a callback without registering another handler with Aeron.
- Channel
Uri - Represents the Aeron URI parser and handler.
- Embedded
Media Driver - RAII guard for an embedded media driver launched via
AeronDriver::launch_embedded_guard. Signals stop on drop so the driver thread always joins even on panic / early return. - FnMut
Controlled Message Handler - FnMut
Message Handler - Handler
- A reference-counted callback that C stores and calls later.
- Handlers
- Utility method for setting empty handlers
- Ifaddrs
- In6Addr
- InAddr
- Iovec
- ManagedC
Resource - Owns a C resource and calls its cleanup closure when the last handle drops.
- Mmsghdr
- Msghdr
- NoHandler
- Type-level “no callback” sentinel.
- NoOp
Idle Strategy - No-op. Never yields the core. (Aeron
NoOpIdleStrategy.) - Pollfd
- Ref
- A wrapper around a C object that belongs to the value it came from, such as the
context returned by
archive.get_archive_context() - Sleeping
Idle Strategy - Sleep for a fixed duration when idle. (Aeron
SleepingIdleStrategy.) - Sockaddr
- Sockaddr
Storage - Timespec
- VaList
Tag - Yielding
Idle Strategy - Yield the OS thread when idle. Lower CPU than busy-spin, slightly higher latency.
(Aeron
YieldingIdleStrategy.)
Enums§
- Aeron
Error Type - Aeron
Idle Strategy Kind - Aeron’s named idle strategies, as accepted by the context / media-driver
set_*_idle_strategyoptions (the Caeron_idle_strategy_loadsymbol table). - Aeron
Offer Error - Typed error for
offer/try_claimon a publication. - Aeron
Status - High-level connection state of a publication or subscription.
- Aeron
System Counter Type - CResource
- Control
Mode - Enum for control modes.
- Media
- Enum for media types.
Constants§
- AERON_
DIR_ PROP_ NAME - AERON_
IPC_ MEDIA - AERON_
UDP_ MEDIA - DRIVER_
TIMEOUT_ MS_ DEFAULT - MAX_
OFFER_ PARTS - Max buffer parts accepted by
AeronPublication::offer_parts/AeronExclusivePublication::offer_parts. Theaeron_iovec_tarray is built on the stack, so it has a fixed capacity. Use the rawoffervwith your own iovec array for larger gathers. - SPY_
PREFIX - TAG_
PREFIX
Statics§
Traits§
- Aeron
Agent Close Func Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
Agent DoWork Func Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
Agent Start Func Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
Available Counter Callback - Function called by aeron_client_t to deliver notifications that a counter has been added to the driver.
- Aeron
Available Image Callback - Function called by aeron_client_t to deliver notifications that an aeron_image_t was added.
- Aeron
Block Handler Callback - Callback for handling a block of messages being read from a log.
- Aeron
Close Client Callback - Function called by aeron_client_t to deliver notifications that the client is closing.
- Aeron
Congestion Control Strategy Initial Window Length Func Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
Congestion Control Strategy MaxWindow Length Func Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
Congestion Control Strategy Rttm Func Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
Congestion Control Strategy Rttm Sent Func Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
Congestion Control Strategy Should Measure RttFunc Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
Controlled Fragment Handler Callback - Callback for handling fragments of data being read from a log.
- Aeron
Counters Reader Foreach Counter Func Callback - Function called by aeron_counters_reader_foreach_counter for each counter in the aeron_counters_reader_t.
- Aeron
Counters Reader Foreach Metadata Func Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
Driver Termination Hook Func Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
Driver Termination Validator Func Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
Duty Cycle Tracker Measure AndUpdate Func Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
Duty Cycle Tracker Update Func Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
EndOf Life Resource Free Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
Error Handler Callback - The error handler to be called when an error occurs.
- Aeron
Error LogReader Func Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
Flow Control Strategy Error Func Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
Flow Control Strategy Idle Func Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
Flow Control Strategy MaxRetransmission Length Func Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
Flow Control Strategy Setup Func Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
Flow Control Strategy SmFunc Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
Flow Control Strategy Trigger Send Setup Func Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
Fprintf Handler Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
Fragment Handler Callback - Callback for handling fragments of data being read from a log.
- Aeron
Idle Strategy Func Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
Ifaddr Func Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
Int64 Counter MapFor Each Func Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
Int64 Counter MapPredicate Func Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
Int64 ToPtr Hash MapFor Each Func Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
Int64 ToPtr Hash MapPredicate Func Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
Int64 ToTagged PtrHash MapFor Each Func Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
Int64 ToTagged PtrHash MapPredicate Func Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
Loss Generator Should Drop Frame Detailed Func Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
Loss Generator Should Drop Frame Simple Func Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
Loss Reporter Read Entry Func Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
NewPublication Callback - Function called by aeron_client_t to deliver notification that the media driver has added an aeron_publication_t or aeron_exclusive_publication_t successfully.
- Aeron
NewSubscription Callback - Function called by aeron_client_t to deliver notification that the media driver has added an aeron_subscription_t successfully.
- Aeron
Notification Callback - Generalised notification callback.
- Aeron
Port Manager Free Managed Port Func Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
Port Manager GetManaged Port Func Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
Publication Error Frame Handler Callback - The error frame handler to be called when the driver notifies the client about an error frame being received.
The data passed to this callback will only be valid for the lifetime of the callback. The user should use
aeron_publication_error_values_copyif they require the data to live longer than that. - Aeron
Queue Drain Func Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
RbControlled Handler Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
RbHandler Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
Receive Channel Loss Supplier Func Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
Reserved Value Supplier Callback - Function called when filling in the reserved value field of a message.
- Aeron
Retransmit Handler Resend Func Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
Send Channel Loss Supplier Func Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
StrTo PtrHash MapFor Each Func Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
Term GapScanner GapDetected Func Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
Unavailable Counter Callback - Function called by aeron_client_t to deliver notifications that a counter has been removed from the driver.
- Aeron
Unavailable Image Callback - Function called by aeron_client_t to deliver notifications that an aeron_image_t has been removed from use and should not be used any longer.
- Aeron
UriHostname Resolver Func Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Aeron
UriParse Callback Callback - (note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
- Controlled
Fragment Assemblable - A poll target whose raw fragments can be reassembled by
AeronControlledFragmentAssembler. - Fragment
Assemblable - A poll target whose raw fragments can be reassembled by
AeronFragmentAssembler. Implemented forAeronSubscriptionhere and for archive types in rusteron-archive. - Idle
Strategy - Back off a poll loop when the last cycle did no work. Mirrors Aeron’s
IdleStrategy:idle(work_count)returns immediately whenwork_count > 0, otherwise spins / yields / sleeps depending on the implementation. - IntoC
String
Functions§
- find_
unused_ udp_ port - is_
udp_ port_ available - validate_
endpoint_ for_ aeron_ udp - Validate a UDP channel URI endpoint (host:port) for use with Aeron.
Type Aliases§
- Cleanup
Box - RcOrArc
- Reference-counting smart pointer:
Rcby default,Arcunder themulti-threadedfeature. Swapping is transparent.RcOrArc::new,.clone()andstrong_countall work on both. - RefCell
OrMutex