#[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
impl Copy for aeron_publication_constants_stct
Auto Trait Implementations§
impl Freeze for aeron_publication_constants_stct
impl RefUnwindSafe for aeron_publication_constants_stct
impl !Send for aeron_publication_constants_stct
impl !Sync for aeron_publication_constants_stct
impl Unpin for aeron_publication_constants_stct
impl UnwindSafe for aeron_publication_constants_stct
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)