Skip to main content

Crate rusteron_media_driver

Crate rusteron_media_driver 

Source
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.


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:

VariableDirectory
DEP_AERON_DRIVER_INCLUDEthe media driver’s headers
DEP_AERON_DRIVER_CLIENT_INCLUDEthe client headers they include
DEP_AERON_DRIVER_AERON_ROOTthe 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 dynamically
  • backtrace: Logs a backtrace for each AeronCError
  • extra-logging: Logs when a resource is created and destroyed. Useful if you’re seeing a segfault due to a resource being closed
  • log-c-bindings: Logs every C binding call with arguments and return values. Useful for debugging FFI interactions
  • precompile: Uses precompiled C code instead of requiring cmake and java to be installed

Modules§

bindings
testing
Test/example support: an embedded media driver with RAII teardown.

Macros§

cformat
format! for C strings: builds the formatted String and converts it to a CString in one visibly-named step.

Structs§

Addrinfo
Aeron
AeronAgentCloseFuncLogger
AeronAgentCloseFuncSlot
A callback you can replace without registering another handler.
AeronAgentDoWorkFuncLogger
AeronAgentDoWorkFuncSlot
A callback you can replace without registering another handler.
AeronAgentRunner
AeronAgentStartFuncLogger
AeronAgentStartFuncSlot
A callback you can replace without registering another handler.
AeronArchiveRecordingPositionKeyLayout
AeronAsyncAddCounter
AeronAsyncAddExclusivePublication
AeronAsyncAddPublication
AeronAsyncAddSubscription
AeronAsyncDestination
AeronAsyncDestinationById
AeronAsyncGetNextAvailableSessionId
AeronAtomicCounter
AeronAvailableCounterLogger
AeronAvailableCounterPair
AeronAvailableCounterSlot
A callback you can replace without registering another handler.
AeronAvailableImageLogger
AeronAvailableImageSlot
A callback you can replace without registering another handler.
AeronBlockHandlerLogger
AeronBlockHandlerSlot
A callback you can replace without registering another handler.
AeronBroadcastDescriptor
AeronBroadcastRecordDescriptor
AeronBroadcastTransmitter
AeronBufferClaim
Structure used to hold information for a try_claim function call.
AeronCError
Aeron C API error: code + optional message.
AeronChannelEndpointStatusKeyLayout
AeronClaim
Zero-copy claim on a publication’s term buffer with a RAII commit-or-abort lifecycle.
AeronClient
AeronClientRegisteringResource
AeronClientTimeout
AeronClockCache
AeronCloseClientLogger
AeronCloseClientPair
AeronCloseClientSlot
A callback you can replace without registering another handler.
AeronCnc
AeronCncConstants
AeronCncMetadata
AeronCongestionControlStrategy
AeronCongestionControlStrategyInitialWindowLengthFuncLogger
AeronCongestionControlStrategyInitialWindowLengthFuncSlot
A callback you can replace without registering another handler.
AeronCongestionControlStrategyMaxWindowLengthFuncLogger
AeronCongestionControlStrategyMaxWindowLengthFuncSlot
A callback you can replace without registering another handler.
AeronCongestionControlStrategyRttmFuncLogger
AeronCongestionControlStrategyRttmFuncSlot
A callback you can replace without registering another handler.
AeronCongestionControlStrategyRttmSentFuncLogger
AeronCongestionControlStrategyRttmSentFuncSlot
A callback you can replace without registering another handler.
AeronCongestionControlStrategyShouldMeasureRttFuncLogger
AeronCongestionControlStrategyShouldMeasureRttFuncSlot
A callback you can replace without registering another handler.
AeronContext
AeronControlledFragmentAssembler
AeronControlledFragmentClosureAssembler
AeronControlledFragmentHandlerLogger
AeronControlledFragmentHandlerSlot
A callback you can replace without registering another handler.
AeronCorrelatedCommand
AeronCounter
AeronCounterCommand
AeronCounterConstants
Configuration for a counter that does not change during its lifetime.
AeronCounterLink
AeronCounterMetadataDescriptor
AeronCounterUpdate
AeronCounterValueDescriptor
AeronCountersManager
AeronCountersReader
AeronCountersReaderBuffers
AeronCountersReaderForeachCounterFuncLogger
AeronCountersReaderForeachCounterFuncSlot
A callback you can replace without registering another handler.
AeronCountersReaderForeachMetadataFuncLogger
AeronCountersReaderForeachMetadataFuncSlot
A callback you can replace without registering another handler.
AeronDataHeader
AeronDataHeaderAsLongs
AeronDataPacketDispatcher
AeronDataPacketDispatcherStreamInterest
AeronDeque
AeronDestinationByIdCommand
AeronDestinationCommand
AeronDistinctErrorLog
AeronDistinctErrorLogObservationList
AeronDistinctObservation
AeronDlLoadedLibsState
AeronDriver
AeronDriverConductor
AeronDriverConductorClientCommand
AeronDriverConductorDriverCommand
AeronDriverConductorProxy
AeronDriverContext
AeronDriverContextBindingsClientdEntry
AeronDriverManagedResource
AeronDriverNativeResourceAgent
AeronDriverNativeResourceAgentCommandResult
AeronDriverNativeResourceAgentProxy
AeronDriverNativeResourceAgentProxyCmdFreeLogBuffer
AeronDriverNativeResourceAgentProxyCmdMapLogBuffer
AeronDriverNativeResourceAgentProxyCmdParseChannel
AeronDriverNativeResourceAgentProxyCmdResolveAddress
AeronDriverReceiver
AeronDriverReceiverImageEntry
AeronDriverReceiverPendingSetupEntry
AeronDriverReceiverProxy
AeronDriverSender
AeronDriverSenderNetworkPublicationEntry
AeronDriverSenderProxy
AeronDriverTerminationHookFuncLogger
AeronDriverTerminationHookFuncSlot
A callback you can replace without registering another handler.
AeronDriverTerminationValidatorFuncLogger
AeronDriverTerminationValidatorFuncSlot
A callback you can replace without registering another handler.
AeronDriverUriPublicationParams
AeronDriverUriSubscriptionParams
AeronDutyCycleStallTracker
AeronDutyCycleTracker
AeronDutyCycleTrackerMeasureAndUpdateFuncLogger
AeronDutyCycleTrackerMeasureAndUpdateFuncSlot
A callback you can replace without registering another handler.
AeronDutyCycleTrackerUpdateFuncLogger
AeronDutyCycleTrackerUpdateFuncSlot
A callback you can replace without registering another handler.
AeronEndOfLifeResource
AeronEndOfLifeResourceFreeLogger
AeronEndOfLifeResourceFreeSlot
A callback you can replace without registering another handler.
AeronErrorHandlerLogger
AeronErrorHandlerSlot
A callback you can replace without registering another handler.
AeronErrorHeader
AeronErrorLogEntry
AeronErrorLogReaderFuncLogger
AeronErrorLogReaderFuncSlot
A callback you can replace without registering another handler.
AeronErrorLogger
Production error handler that routes Aeron async errors through the Rust log facade at error level with a concise format. This is the recommended default for AeronContext::set_error_handler.
AeronErrorResponse
AeronExclusivePublication
AeronFeedbackDelayGeneratorState
AeronFlowControlMaxOptions
AeronFlowControlStrategy
AeronFlowControlStrategyErrorFuncLogger
AeronFlowControlStrategyErrorFuncSlot
A callback you can replace without registering another handler.
AeronFlowControlStrategyIdleFuncLogger
AeronFlowControlStrategyIdleFuncSlot
A callback you can replace without registering another handler.
AeronFlowControlStrategyMaxRetransmissionLengthFuncLogger
AeronFlowControlStrategyMaxRetransmissionLengthFuncSlot
A callback you can replace without registering another handler.
AeronFlowControlStrategySetupFuncLogger
AeronFlowControlStrategySetupFuncSlot
A callback you can replace without registering another handler.
AeronFlowControlStrategySmFuncLogger
AeronFlowControlStrategySmFuncSlot
A callback you can replace without registering another handler.
AeronFlowControlStrategySupplierFuncTableEntry
AeronFlowControlStrategyTriggerSendSetupFuncLogger
AeronFlowControlStrategyTriggerSendSetupFuncSlot
A callback you can replace without registering another handler.
AeronFlowControlTaggedOptions
AeronFprintfHandlerLogger
AeronFprintfHandlerSlot
A callback you can replace without registering another handler.
AeronFragmentAssembler
AeronFragmentClosureAssembler
AeronFragmentHandlerLogger
AeronFragmentHandlerSlot
A callback you can replace without registering another handler.
AeronFrameHeader
AeronGetNextAvailableSessionIdCommand
AeronHeader
AeronHeaderValues
AeronHeaderValuesFrame
AeronHeartbeatTimestampKeyLayout
AeronIdleStrategy
AeronIdleStrategyFuncLogger
AeronIdleStrategyFuncSlot
A callback you can replace without registering another handler.
AeronIfaddrFuncLogger
AeronIfaddrFuncSlot
A callback you can replace without registering another handler.
AeronImage
AeronImageBuffersReady
AeronImageConstants
Configuration for an image that does not change during it’s lifetime.
AeronImageControlledFragmentAssembler
AeronImageFragmentAssembler
AeronImageMessage
AeronInt64CounterMap
AeronInt64CounterMapForEachFuncLogger
AeronInt64CounterMapForEachFuncSlot
A callback you can replace without registering another handler.
AeronInt64CounterMapPredicateFuncLogger
AeronInt64CounterMapPredicateFuncSlot
A callback you can replace without registering another handler.
AeronInt64ToPtrHashMap
AeronInt64ToPtrHashMapForEachFuncLogger
AeronInt64ToPtrHashMapForEachFuncSlot
A callback you can replace without registering another handler.
AeronInt64ToPtrHashMapPredicateFuncLogger
AeronInt64ToPtrHashMapPredicateFuncSlot
A callback you can replace without registering another handler.
AeronInt64ToTaggedPtrEntry
AeronInt64ToTaggedPtrHashMap
AeronInt64ToTaggedPtrHashMapForEachFuncLogger
AeronInt64ToTaggedPtrHashMapForEachFuncSlot
A callback you can replace without registering another handler.
AeronInt64ToTaggedPtrHashMapPredicateFuncLogger
AeronInt64ToTaggedPtrHashMapPredicateFuncSlot
A callback you can replace without registering another handler.
AeronIovec
AeronIpcChannelParams
AeronIpcPublication
AeronIpcPublicationEntry
AeronLingerResourceEntry
AeronLocalSockaddrKeyLayout
AeronLogBuffer
AeronLogbufferMetadata
AeronLossDetector
AeronLossDetectorGap
AeronLossGenerator
AeronLossGeneratorShouldDropFrameDetailedFuncLogger
AeronLossGeneratorShouldDropFrameDetailedFuncSlot
A callback you can replace without registering another handler.
AeronLossGeneratorShouldDropFrameSimpleFuncLogger
AeronLossGeneratorShouldDropFrameSimpleFuncSlot
A callback you can replace without registering another handler.
AeronLossReporter
AeronLossReporterEntry
AeronLossReporterReadEntryFuncLogger
AeronLossReporterReadEntryFuncSlot
A callback you can replace without registering another handler.
AeronMappedBuffer
AeronMappedFile
AeronMappedRawLog
AeronMpscRb
AeronNakHeader
AeronNamedInterface
AeronNetworkPublication
AeronNetworkPublicationEntry
AeronNewPublicationLogger
AeronNewPublicationSlot
A callback you can replace without registering another handler.
AeronNewSubscriptionLogger
AeronNewSubscriptionSlot
A callback you can replace without registering another handler.
AeronNextAvailableSessionIdResponse
AeronNotificationLogger
AeronNotificationSlot
A callback you can replace without registering another handler.
AeronOperationSucceeded
AeronOptionHeader
AeronParsedAddress
AeronParsedInterface
AeronPerThreadError
AeronPortManager
AeronPortManagerFreeManagedPortFuncLogger
AeronPortManagerFreeManagedPortFuncSlot
A callback you can replace without registering another handler.
AeronPortManagerGetManagedPortFuncLogger
AeronPortManagerGetManagedPortFuncSlot
A callback you can replace without registering another handler.
AeronPosition
AeronPublication
AeronPublicationBuffersReady
AeronPublicationCommand
AeronPublicationConstants
Configuration for a publication that does not change during it’s lifetime.
AeronPublicationError
AeronPublicationErrorFrameHandlerLogger
AeronPublicationErrorFrameHandlerSlot
A callback you can replace without registering another handler.
AeronPublicationErrorValues
AeronPublicationImage
AeronPublicationImageConnection
AeronPublicationImageEntry
AeronPublicationLink
AeronQueueDrainFuncLogger
AeronQueueDrainFuncSlot
A callback you can replace without registering another handler.
AeronRbControlledHandlerLogger
AeronRbControlledHandlerSlot
A callback you can replace without registering another handler.
AeronRbDescriptor
AeronRbHandlerLogger
AeronRbHandlerSlot
A callback you can replace without registering another handler.
AeronRbRecordDescriptor
AeronReceiveChannelEndpoint
AeronReceiveChannelEndpointEntry
AeronReceiveChannelLossSupplierFuncLogger
AeronReceiveChannelLossSupplierFuncSlot
A callback you can replace without registering another handler.
AeronReceiveDestination
AeronReceiveDestinationEntry
AeronRejectImageCommand
AeronRemoveCounterCommand
AeronRemovePublicationCommand
AeronRemoveSubscriptionCommand
AeronReservedValueSupplierLogger
AeronReservedValueSupplierSlot
A callback you can replace without registering another handler.
AeronResolutionHeader
AeronResolutionHeaderIpv4
AeronResolutionHeaderIpv6
AeronResponseSetupHeader
AeronRetransmitAction
AeronRetransmitHandler
AeronRetransmitHandlerResendFuncLogger
AeronRetransmitHandlerResendFuncSlot
A callback you can replace without registering another handler.
AeronRttmHeader
AeronSendChannelEndpoint
AeronSendChannelEndpointEntry
AeronSendChannelLossSupplierFuncLogger
AeronSendChannelLossSupplierFuncSlot
A callback you can replace without registering another handler.
AeronSetupHeader
AeronSpscConcurrentArrayQueue
AeronSpscRb
AeronStaticCounterCommand
AeronStaticCounterResponse
AeronStatusMessageHeader
AeronStatusMessageOptionalHeader
AeronStatusTracker
Status transition tracker that emits only when the observed AeronStatus differs from the previously recorded state.
AeronStrToPtrHashMap
AeronStrToPtrHashMapForEachFuncLogger
AeronStrToPtrHashMapForEachFuncSlot
A callback you can replace without registering another handler.
AeronStrToPtrHashMapKey
AeronStreamPositionCounterKeyLayout
AeronSubscribable
AeronSubscribableListEntry
AeronSubscription
AeronSubscriptionCommand
AeronSubscriptionConstants
AeronSubscriptionLink
AeronSubscriptionReady
AeronSystemCounter
AeronSystemCounters
AeronTermGapScannerGapDetectedFuncLogger
AeronTermGapScannerGapDetectedFuncSlot
A callback you can replace without registering another handler.
AeronTerminateDriverCommand
AeronTetherablePosition
AeronUdpChannel
AeronUdpChannelAsyncParse
AeronUdpChannelDataPaths
AeronUdpChannelIncomingInterceptor
AeronUdpChannelInterceptorBindings
AeronUdpChannelOutgoingInterceptor
AeronUdpChannelParams
AeronUdpDestinationEntry
AeronUdpDestinationTracker
AeronUnavailableCounterLogger
AeronUnavailableCounterPair
AeronUnavailableCounterSlot
A callback you can replace without registering another handler.
AeronUnavailableImageLogger
AeronUnavailableImageSlot
A callback you can replace without registering another handler.
AeronUri
AeronUriHostnameResolverFuncLogger
AeronUriHostnameResolverFuncSlot
A callback you can replace without registering another handler.
AeronUriParam
AeronUriParams
AeronUriParseCallbackLogger
AeronUriParseCallbackSlot
A callback you can replace without registering another handler.
AeronUriStringBuilder
AeronWildcardPortManager
AtomicWideCounterBindgenTy1
BackoffIdleStrategy
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.)
BusySpinIdleStrategy
Spin with a CPU pause hint. Lowest latency, pins a core. (Aeron BusySpinIdleStrategy.)
CallbackSlot
Lets you replace a callback without registering another handler with Aeron.
ChannelUri
Represents the Aeron URI parser and handler.
EmbeddedMediaDriver
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.
FnMutControlledMessageHandler
FnMutMessageHandler
Handler
A reference-counted callback that C stores and calls later.
Handlers
Utility method for setting empty handlers
Ifaddrs
In6Addr
InAddr
Iovec
ManagedCResource
Owns a C resource and calls its cleanup closure when the last handle drops.
Mmsghdr
Msghdr
NoHandler
Type-level “no callback” sentinel.
NoOpIdleStrategy
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()
SleepingIdleStrategy
Sleep for a fixed duration when idle. (Aeron SleepingIdleStrategy.)
Sockaddr
SockaddrStorage
Timespec
VaListTag
YieldingIdleStrategy
Yield the OS thread when idle. Lower CPU than busy-spin, slightly higher latency. (Aeron YieldingIdleStrategy.)

Enums§

AeronErrorType
AeronIdleStrategyKind
Aeron’s named idle strategies, as accepted by the context / media-driver set_*_idle_strategy options (the C aeron_idle_strategy_load symbol table).
AeronOfferError
Typed error for offer / try_claim on a publication.
AeronStatus
High-level connection state of a publication or subscription.
AeronSystemCounterType
CResource
ControlMode
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. The aeron_iovec_t array is built on the stack, so it has a fixed capacity. Use the raw offerv with your own iovec array for larger gathers.
SPY_PREFIX
TAG_PREFIX

Statics§

AERON_IPC_STREAM

Traits§

AeronAgentCloseFuncCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronAgentDoWorkFuncCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronAgentStartFuncCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronAvailableCounterCallback
Function called by aeron_client_t to deliver notifications that a counter has been added to the driver.
AeronAvailableImageCallback
Function called by aeron_client_t to deliver notifications that an aeron_image_t was added.
AeronBlockHandlerCallback
Callback for handling a block of messages being read from a log.
AeronCloseClientCallback
Function called by aeron_client_t to deliver notifications that the client is closing.
AeronCongestionControlStrategyInitialWindowLengthFuncCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronCongestionControlStrategyMaxWindowLengthFuncCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronCongestionControlStrategyRttmFuncCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronCongestionControlStrategyRttmSentFuncCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronCongestionControlStrategyShouldMeasureRttFuncCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronControlledFragmentHandlerCallback
Callback for handling fragments of data being read from a log.
AeronCountersReaderForeachCounterFuncCallback
Function called by aeron_counters_reader_foreach_counter for each counter in the aeron_counters_reader_t.
AeronCountersReaderForeachMetadataFuncCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronDriverTerminationHookFuncCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronDriverTerminationValidatorFuncCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronDutyCycleTrackerMeasureAndUpdateFuncCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronDutyCycleTrackerUpdateFuncCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronEndOfLifeResourceFreeCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronErrorHandlerCallback
The error handler to be called when an error occurs.
AeronErrorLogReaderFuncCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronFlowControlStrategyErrorFuncCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronFlowControlStrategyIdleFuncCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronFlowControlStrategyMaxRetransmissionLengthFuncCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronFlowControlStrategySetupFuncCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronFlowControlStrategySmFuncCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronFlowControlStrategyTriggerSendSetupFuncCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronFprintfHandlerCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronFragmentHandlerCallback
Callback for handling fragments of data being read from a log.
AeronIdleStrategyFuncCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronIfaddrFuncCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronInt64CounterMapForEachFuncCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronInt64CounterMapPredicateFuncCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronInt64ToPtrHashMapForEachFuncCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronInt64ToPtrHashMapPredicateFuncCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronInt64ToTaggedPtrHashMapForEachFuncCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronInt64ToTaggedPtrHashMapPredicateFuncCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronLossGeneratorShouldDropFrameDetailedFuncCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronLossGeneratorShouldDropFrameSimpleFuncCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronLossReporterReadEntryFuncCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronNewPublicationCallback
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.
AeronNewSubscriptionCallback
Function called by aeron_client_t to deliver notification that the media driver has added an aeron_subscription_t successfully.
AeronNotificationCallback
Generalised notification callback.
AeronPortManagerFreeManagedPortFuncCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronPortManagerGetManagedPortFuncCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronPublicationErrorFrameHandlerCallback
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_copy if they require the data to live longer than that.
AeronQueueDrainFuncCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronRbControlledHandlerCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronRbHandlerCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronReceiveChannelLossSupplierFuncCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronReservedValueSupplierCallback
Function called when filling in the reserved value field of a message.
AeronRetransmitHandlerResendFuncCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronSendChannelLossSupplierFuncCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronStrToPtrHashMapForEachFuncCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronTermGapScannerGapDetectedFuncCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronUnavailableCounterCallback
Function called by aeron_client_t to deliver notifications that a counter has been removed from the driver.
AeronUnavailableImageCallback
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.
AeronUriHostnameResolverFuncCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
AeronUriParseCallbackCallback
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
ControlledFragmentAssemblable
A poll target whose raw fragments can be reassembled by AeronControlledFragmentAssembler.
FragmentAssemblable
A poll target whose raw fragments can be reassembled by AeronFragmentAssembler. Implemented for AeronSubscription here and for archive types in rusteron-archive.
IdleStrategy
Back off a poll loop when the last cycle did no work. Mirrors Aeron’s IdleStrategy: idle(work_count) returns immediately when work_count > 0, otherwise spins / yields / sleeps depending on the implementation.
IntoCString

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§

CleanupBox
RcOrArc
Reference-counting smart pointer: Rc by default, Arc under the multi-threaded feature. Swapping is transparent. RcOrArc::new, .clone() and strong_count all work on both.
RefCellOrMutex