rusteron_archive

Struct AeronUriStringBuilder

Source
pub struct AeronUriStringBuilder { /* private fields */ }

Implementations§

Source§

impl AeronUriStringBuilder

Source

pub fn new( params: AeronStrToPtrHashMap, closed: bool, ) -> Result<Self, AeronCError>

Source

pub fn new_zeroed() -> Result<Self, AeronCError>

creates zeroed struct where the underlying c struct is on the heap

Source

pub fn params(&self) -> AeronStrToPtrHashMap

Source

pub fn closed(&self) -> bool

Source

pub fn init_new(&self) -> Result<i32, AeronCError>

Source

pub fn init_on_string(&self, uri: &str) -> Result<i32, AeronCError>

Source

pub fn close(&self) -> Result<i32, AeronCError>

Source

pub fn put(&self, key: &str, value: &str) -> Result<i32, AeronCError>

Source

pub fn put_int32(&self, key: &str, value: i32) -> Result<i32, AeronCError>

Source

pub fn put_int64(&self, key: &str, value: i64) -> Result<i32, AeronCError>

Source

pub fn get(&self, key: &str) -> &str

Source

pub fn sprint( &self, buffer: *mut c_char, buffer_len: usize, ) -> Result<i32, AeronCError>

Source

pub fn sprint_as_string(&self, max_length: usize) -> Result<String, AeronCError>

Source

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

Source

pub fn set_initial_position( &self, position: i64, initial_term_id: i32, term_length: i32, ) -> Result<i32, AeronCError>

Source

pub fn get_inner(&self) -> *mut aeron_uri_string_builder_t

Source§

impl AeronUriStringBuilder

Source

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

Source

pub fn build(&self, max_str_length: usize) -> Result<String, AeronCError>

Source

pub fn media(&self, value: Media) -> Result<&Self, AeronCError>

Source

pub fn control_mode(&self, value: ControlMode) -> Result<&Self, AeronCError>

Source

pub fn prefix(&self, value: &str) -> Result<&Self, AeronCError>

Source

pub fn initial_term_id(&self, value: i32) -> Result<&Self, AeronCError>

Source

pub fn term_id(&self, value: i32) -> Result<&Self, AeronCError>

Source

pub fn term_offset(&self, value: i32) -> Result<&Self, AeronCError>

Source

pub fn alias(&self, value: &str) -> Result<&Self, AeronCError>

Source

pub fn term_length(&self, value: &str) -> Result<&Self, AeronCError>

Source

pub fn linger_timeout(&self, value: i64) -> Result<&Self, AeronCError>

Source

pub fn mtu_length(&self, value: i32) -> Result<&Self, AeronCError>

Source

pub fn ttl(&self, value: i32) -> Result<&Self, AeronCError>

Source

pub fn sparse_term(&self, value: bool) -> Result<&Self, AeronCError>

Source

pub fn reliable(&self, value: bool) -> Result<&Self, AeronCError>

Source

pub fn eos(&self, value: bool) -> Result<&Self, AeronCError>

Source

pub fn tether(&self, value: bool) -> Result<&Self, AeronCError>

Source

pub fn tags(&self, value: &str) -> Result<&Self, AeronCError>

Source

pub fn endpoint(&self, value: &str) -> Result<&Self, AeronCError>

Source

pub fn interface(&self, value: &str) -> Result<&Self, AeronCError>

Source

pub fn control(&self, value: &str) -> Result<&Self, AeronCError>

Source

pub fn session_id(&self, value: &str) -> Result<&Self, AeronCError>

Source

pub fn group(&self, value: bool) -> Result<&Self, AeronCError>

Source

pub fn rejoin(&self, value: bool) -> Result<&Self, AeronCError>

Source

pub fn fc(&self, value: &str) -> Result<&Self, AeronCError>

Source

pub fn gtag(&self, value: &str) -> Result<&Self, AeronCError>

Source

pub fn cc(&self, value: &str) -> Result<&Self, AeronCError>

Source

pub fn spies_simulate_connection( &self, value: bool, ) -> Result<&Self, AeronCError>

Source

pub fn ats(&self, value: bool) -> Result<&Self, AeronCError>

Source

pub fn socket_sndbuf(&self, value: i32) -> Result<&Self, AeronCError>

Source

pub fn socket_rcvbuf(&self, value: i32) -> Result<&Self, AeronCError>

Source

pub fn receiver_window(&self, value: i32) -> Result<&Self, AeronCError>

Source

pub fn media_rcv_timestamp_offset( &self, value: &str, ) -> Result<&Self, AeronCError>

Source

pub fn channel_rcv_timestamp_offset( &self, value: &str, ) -> Result<&Self, AeronCError>

Source

pub fn channel_snd_timestamp_offset( &self, value: &str, ) -> Result<&Self, AeronCError>

Source

pub fn timestamp_offset_reserved( &self, value: &str, ) -> Result<&Self, AeronCError>

Source

pub fn response_correlation_id(&self, value: i64) -> Result<&Self, AeronCError>

Source

pub fn nak_delay(&self, value: i64) -> Result<&Self, AeronCError>

Source

pub fn untethered_window_limit_timeout( &self, value: i64, ) -> Result<&Self, AeronCError>

Source

pub fn untethered_resting_timeout( &self, value: i64, ) -> Result<&Self, AeronCError>

Source

pub fn max_resend(&self, value: i32) -> Result<&Self, AeronCError>

Source

pub fn stream_id(&self, value: i32) -> Result<&Self, AeronCError>

Source

pub fn publication_window(&self, value: i32) -> Result<&Self, AeronCError>

Source

pub fn build_into(&self, dst: &mut String) -> Result<(), AeronCError>

Trait Implementations§

Source§

impl Clone for AeronUriStringBuilder

Source§

fn clone(&self) -> AeronUriStringBuilder

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 AeronUriStringBuilder

Source§

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

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

impl Default for AeronUriStringBuilder

This will create an instance where the struct is zeroed, use with care

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Deref for AeronUriStringBuilder

Source§

type Target = aeron_uri_string_builder_stct

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl From<&AeronUriStringBuilder> for *mut aeron_uri_string_builder_t

Source§

fn from(value: &AeronUriStringBuilder) -> Self

Converts to this type from the input type.
Source§

impl From<*const aeron_uri_string_builder_stct> for AeronUriStringBuilder

Source§

fn from(value: *const aeron_uri_string_builder_t) -> Self

Converts to this type from the input type.
Source§

impl From<*mut aeron_uri_string_builder_stct> for AeronUriStringBuilder

Source§

fn from(value: *mut aeron_uri_string_builder_t) -> Self

Converts to this type from the input type.
Source§

impl From<AeronUriStringBuilder> for *mut aeron_uri_string_builder_t

Source§

fn from(value: AeronUriStringBuilder) -> Self

Converts to this type from the input type.
Source§

impl From<AeronUriStringBuilder> for aeron_uri_string_builder_t

Source§

fn from(value: AeronUriStringBuilder) -> Self

Converts to this type from the input type.
Source§

impl From<aeron_uri_string_builder_stct> for AeronUriStringBuilder

Source§

fn from(value: aeron_uri_string_builder_t) -> Self

Converts to this type from the input type.
Source§

impl FromStr for AeronUriStringBuilder

Source§

type Err = AeronCError

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

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

Source§

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>,

Source§

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>,

Source§

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.