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 i8Media 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.
Callback used to indicate when an Image goes unavailable under this Subscription.
registration_id: i64Return the registration id used to register this Subscription with the media driver.
stream_id: i32Stream identity for scoping within the channel media address.
channel_status_indicator_id: i32Counter id for the channel status indicator
Trait Implementations§
Source§impl<S: ResourceStorage<aeron_subscription_constants_t>> From<AeronSubscriptionConstants<S>> for aeron_subscription_constants_t
impl<S: ResourceStorage<aeron_subscription_constants_t>> From<AeronSubscriptionConstants<S>> for aeron_subscription_constants_t
Source§fn from(value: AeronSubscriptionConstants<S>) -> Self
fn from(value: AeronSubscriptionConstants<S>) -> Self
Converts to this type from the input type.
Source§impl NativeResource for aeron_subscription_constants_t
impl NativeResource for aeron_subscription_constants_t
type Policy = LocalResource
Source§type Pointer = CachedPointer<aeron_subscription_constants_stct>
type Pointer = CachedPointer<aeron_subscription_constants_stct>
How an owning handle reads its native pointer. Cached pointers are only
valid when native calls cannot release or replace the allocation.