Struct libaeron_sys::aeron_image_constants_stct

source ·
#[repr(C)]
pub struct aeron_image_constants_stct { pub subscription: *mut aeron_subscription_t, pub source_identity: *const c_char, pub correlation_id: i64, pub join_position: i64, pub position_bits_to_shift: usize, pub term_buffer_length: usize, pub mtu_length: usize, pub session_id: i32, pub initial_term_id: i32, pub subscriber_position_id: i32, }
Expand description

Configuration for an image that does not change during it’s lifetime.

Fields§

§subscription: *mut aeron_subscription_t

The subscription to which this image belongs.

§source_identity: *const c_char

The source identity of the sending publisher as an abstract concept appropriate for the media.

§correlation_id: i64

The correlationId for identification of the image with the media driver.

§join_position: i64

Get the position the subscriber joined this stream at.

§position_bits_to_shift: usize

Number of bits to right shift a position to get a term count for how far the stream has progressed.

§term_buffer_length: usize

Get the length in bytes for each term partition in the log buffer.

§mtu_length: usize

The length in bytes of the MTU (Maximum Transmission Unit) the Sender used for the datagram.

§session_id: i32

The sessionId for the steam of messages. Sessions are unique within a subscription and unique across all publications from a source identity.

§initial_term_id: i32

The initial term at which the stream started for this session.

§subscriber_position_id: i32

Counter id that refers to the subscriber position for this image.

Trait Implementations§

source§

impl Clone for aeron_image_constants_stct

source§

fn clone(&self) -> aeron_image_constants_stct

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for aeron_image_constants_stct

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for aeron_image_constants_stct

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.