Type Alias aeron_subscription_constants_t

Source
pub type aeron_subscription_constants_t = aeron_subscription_constants_stct;

Aliased Type§

#[repr(C)]
pub struct aeron_subscription_constants_t { pub channel: *const i8, pub on_available_image: Option<unsafe extern "C" fn(*mut c_void, *mut aeron_subscription_stct, *mut aeron_image_stct)>, pub on_unavailable_image: Option<unsafe extern "C" fn(*mut c_void, *mut aeron_subscription_stct, *mut aeron_image_stct)>, pub registration_id: i64, pub stream_id: i32, pub channel_status_indicator_id: i32, }

Fields§

§channel: *const i8

Media address for delivery to the channel.

This returns a pointer only valid for the lifetime of the subscription.

§on_available_image: Option<unsafe extern "C" fn(*mut c_void, *mut aeron_subscription_stct, *mut aeron_image_stct)>

Callback used to indicate when an Image becomes available under this Subscription.

§on_unavailable_image: Option<unsafe extern "C" fn(*mut c_void, *mut aeron_subscription_stct, *mut aeron_image_stct)>

Callback used to indicate when an Image goes unavailable under this Subscription.

§registration_id: i64

Return the registration id used to register this Subscription with the media driver.

§stream_id: i32

Stream identity for scoping within the channel media address.

§channel_status_indicator_id: i32

Counter id for the channel status indicator

Trait Implementations§

Source§

impl From<AeronSubscriptionConstants> for aeron_subscription_constants_t

Source§

fn from(value: AeronSubscriptionConstants) -> Self

Converts to this type from the input type.