#[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 the 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
impl Clone for aeron_publication_constants_stct
Source§fn clone(&self) -> aeron_publication_constants_stct
fn clone(&self) -> aeron_publication_constants_stct
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl From<aeron_publication_constants_stct> for AeronPublicationConstants
impl From<aeron_publication_constants_stct> for AeronPublicationConstants
Source§fn from(value: aeron_publication_constants_t) -> Self
fn from(value: aeron_publication_constants_t) -> Self
Source§impl PartialEq for aeron_publication_constants_stct
impl PartialEq for aeron_publication_constants_stct
Source§fn eq(&self, other: &aeron_publication_constants_stct) -> bool
fn eq(&self, other: &aeron_publication_constants_stct) -> bool
self
and other
values to be equal, and is used by ==
.