pub struct AeronUriStringBuilder { /* private fields */ }
Implementations§
Source§impl AeronUriStringBuilder
impl AeronUriStringBuilder
pub fn new( params: AeronStrToPtrHashMap, closed: bool, ) -> Result<Self, AeronCError>
Sourcepub fn new_zeroed_on_heap() -> Self
pub fn new_zeroed_on_heap() -> Self
creates zeroed struct where the underlying c struct is on the heap
Sourcepub fn new_zeroed_on_stack() -> Self
pub fn new_zeroed_on_stack() -> Self
creates zeroed struct where the underlying c struct is on the stack (Use with care)
pub fn params(&self) -> AeronStrToPtrHashMap
pub fn closed(&self) -> bool
pub fn init_new(&self) -> Result<i32, AeronCError>
pub fn init_on_string(&self, uri: &str) -> Result<i32, AeronCError>
pub fn close(&self) -> Result<i32, AeronCError>
pub fn put(&self, key: &str, value: &str) -> Result<i32, AeronCError>
pub fn put_int32(&self, key: &str, value: i32) -> Result<i32, AeronCError>
pub fn put_int64(&self, key: &str, value: i64) -> Result<i32, AeronCError>
pub fn get(&self, key: &str) -> &str
pub fn sprint( &self, buffer: *mut c_char, buffer_len: usize, ) -> Result<i32, AeronCError>
pub fn sprint_as_string(&self, max_length: usize) -> Result<String, AeronCError>
Sourcepub fn sprint_into(
&self,
dst_truncate_to_capacity: &mut String,
) -> Result<i32, AeronCError>
pub fn sprint_into( &self, dst_truncate_to_capacity: &mut String, ) -> Result<i32, AeronCError>
NOTE: allocation friendly method, the string capacity must be set as it will truncate string to capacity it will never grow the string. So if you pass String::new() it will write 0 chars
pub fn set_initial_position( &self, position: i64, initial_term_id: i32, term_length: i32, ) -> Result<i32, AeronCError>
pub fn get_inner(&self) -> *mut aeron_uri_string_builder_t
pub fn get_inner_mut(&self) -> &mut aeron_uri_string_builder_t
pub fn get_inner_ref(&self) -> &aeron_uri_string_builder_t
Source§impl AeronUriStringBuilder
impl AeronUriStringBuilder
Sourcepub fn clone_struct(&self) -> Self
pub fn clone_struct(&self) -> Self
Regular clone just increases the reference count of underlying count.
clone_struct
shallow copies the content of the underlying struct on heap.
NOTE: if the struct has references to other structs these will not be copied
Must be only used on structs which has no init/clean up methods. So its danagerous to use with Aeron/AeronContext/AeronPublication/AeronSubscription More intended for AeronArchiveRecordingDescriptor
Source§impl AeronUriStringBuilder
impl AeronUriStringBuilder
pub fn build(&self, max_str_length: usize) -> Result<String, AeronCError>
pub fn media(&self, value: Media) -> Result<&Self, AeronCError>
pub fn control_mode(&self, value: ControlMode) -> Result<&Self, AeronCError>
pub fn prefix(&self, value: &str) -> Result<&Self, AeronCError>
pub fn initial_term_id(&self, value: i32) -> Result<&Self, AeronCError>
pub fn term_id(&self, value: i32) -> Result<&Self, AeronCError>
pub fn term_offset(&self, value: i32) -> Result<&Self, AeronCError>
pub fn alias(&self, value: &str) -> Result<&Self, AeronCError>
pub fn term_length(&self, value: &str) -> Result<&Self, AeronCError>
pub fn linger_timeout(&self, value: i64) -> Result<&Self, AeronCError>
pub fn mtu_length(&self, value: i32) -> Result<&Self, AeronCError>
pub fn ttl(&self, value: i32) -> Result<&Self, AeronCError>
pub fn sparse_term(&self, value: bool) -> Result<&Self, AeronCError>
pub fn reliable(&self, value: bool) -> Result<&Self, AeronCError>
pub fn eos(&self, value: bool) -> Result<&Self, AeronCError>
pub fn tether(&self, value: bool) -> Result<&Self, AeronCError>
pub fn endpoint(&self, value: &str) -> Result<&Self, AeronCError>
pub fn interface(&self, value: &str) -> Result<&Self, AeronCError>
pub fn control(&self, value: &str) -> Result<&Self, AeronCError>
pub fn session_id(&self, value: &str) -> Result<&Self, AeronCError>
pub fn group(&self, value: bool) -> Result<&Self, AeronCError>
pub fn rejoin(&self, value: bool) -> Result<&Self, AeronCError>
pub fn fc(&self, value: &str) -> Result<&Self, AeronCError>
pub fn gtag(&self, value: &str) -> Result<&Self, AeronCError>
pub fn cc(&self, value: &str) -> Result<&Self, AeronCError>
pub fn spies_simulate_connection( &self, value: bool, ) -> Result<&Self, AeronCError>
pub fn ats(&self, value: bool) -> Result<&Self, AeronCError>
pub fn socket_sndbuf(&self, value: i32) -> Result<&Self, AeronCError>
pub fn socket_rcvbuf(&self, value: i32) -> Result<&Self, AeronCError>
pub fn receiver_window(&self, value: i32) -> Result<&Self, AeronCError>
pub fn media_rcv_timestamp_offset( &self, value: &str, ) -> Result<&Self, AeronCError>
pub fn channel_rcv_timestamp_offset( &self, value: &str, ) -> Result<&Self, AeronCError>
pub fn channel_snd_timestamp_offset( &self, value: &str, ) -> Result<&Self, AeronCError>
pub fn timestamp_offset_reserved( &self, value: &str, ) -> Result<&Self, AeronCError>
pub fn response_correlation_id(&self, value: i64) -> Result<&Self, AeronCError>
pub fn nak_delay(&self, value: i64) -> Result<&Self, AeronCError>
pub fn untethered_window_limit_timeout( &self, value: i64, ) -> Result<&Self, AeronCError>
pub fn untethered_resting_timeout( &self, value: i64, ) -> Result<&Self, AeronCError>
pub fn max_resend(&self, value: i32) -> Result<&Self, AeronCError>
pub fn stream_id(&self, value: i32) -> Result<&Self, AeronCError>
pub fn publication_window(&self, value: i32) -> Result<&Self, AeronCError>
pub fn build_into(&self, dst: &mut String) -> Result<(), AeronCError>
Trait Implementations§
Source§impl Clone for AeronUriStringBuilder
impl Clone for AeronUriStringBuilder
Source§fn clone(&self) -> AeronUriStringBuilder
fn clone(&self) -> AeronUriStringBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for AeronUriStringBuilder
impl Debug for AeronUriStringBuilder
Source§impl Default for AeronUriStringBuilder
This will create an instance where the struct is zeroed, use with care
impl Default for AeronUriStringBuilder
This will create an instance where the struct is zeroed, use with care