#[repr(C)]
pub struct aeron_publication_constants_stct {
Show 13 fields pub channel: *const c_char, pub original_registration_id: i64, pub registration_id: i64, pub max_possible_position: i64, pub position_bits_to_shift: usize, pub term_buffer_length: usize, pub max_message_length: usize, pub max_payload_length: usize, pub stream_id: i32, pub session_id: i32, pub initial_term_id: i32, pub publication_limit_counter_id: i32, pub channel_status_indicator_id: i32,
}
Expand description

Configuration for a publication that does not change during it’s lifetime.

Fields§

§channel: *const c_char

Media address for delivery to the channel.

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

§original_registration_id: i64

The registration used to register this Publication with the media driver by the first publisher.

§registration_id: i64

Get the registration id used to register this Publication with the media driver.

If this value is different from the original_registration_id then a previous active registration exists.

§max_possible_position: i64

The maximum possible position this stream can reach due to its term buffer length.

Maximum possible position is term-length times 2^31 in bytes.

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

§max_message_length: usize

Maximum message length supported in bytes. Messages may be made of multiple fragments if greater than MTU length.

§max_payload_length: usize

Maximum length of a message payload that fits within a message fragment.

This is he MTU length minus the message fragment header length.

§stream_id: i32

Stream id of the publication.

§session_id: i32

Session id of the publication.

§initial_term_id: i32

The initial term id assigned when this publication was created. This can be used to determine how many terms have passed since creation.

§publication_limit_counter_id: i32

Counter id for the publication limit.

§channel_status_indicator_id: i32

Counter id for the channel status indicator

Trait Implementations§

source§

impl Clone for aeron_publication_constants_stct

source§

fn clone(&self) -> aeron_publication_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_publication_constants_stct

source§

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

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

impl Copy for aeron_publication_constants_stct

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere 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 Twhere 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 Twhere 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.