rusteron_archive

Struct AeronArchiveProxy

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

Implementations§

Source§

impl AeronArchiveProxy

Source

pub fn new( ctx: &AeronArchiveContext, exclusive_publication: &AeronExclusivePublication, retry_attempts: c_int, ) -> Result<Self, AeronCError>

Source

pub fn ctx(&self) -> AeronArchiveContext

Source

pub fn exclusive_publication(&self) -> AeronExclusivePublication

Source

pub fn control_session_id(&self) -> i64

Source

pub fn retry_attempts(&self) -> c_int

Source

pub fn buffer(&self) -> [u8; 8192]

Source

pub fn init( &self, ctx: &AeronArchiveContext, exclusive_publication: &AeronExclusivePublication, retry_attempts: c_int, ) -> Result<i32, AeronCError>

Source

pub fn set_control_esssion_id( &self, control_session_id: i64, ) -> Result<i32, AeronCError>

Source

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

Source

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

Source

pub fn try_connect( &self, control_response_channel: &str, control_response_stream_id: i32, encoded_credentials: &AeronArchiveEncodedCredentials, correlation_id: i64, ) -> bool

Source

pub fn archive_id(&self, correlation_id: i64) -> bool

Source

pub fn challenge_response( &self, encoded_credentials: &AeronArchiveEncodedCredentials, correlation_id: i64, ) -> bool

Source

pub fn close_session(&self) -> bool

Source

pub fn start_recording( &self, recording_channel: &str, recording_stream_id: i32, local_source: bool, auto_stop: bool, correlation_id: i64, ) -> bool

Source

pub fn get_recording_position( &self, correlation_id: i64, recording_id: i64, ) -> bool

Source

pub fn get_start_position(&self, correlation_id: i64, recording_id: i64) -> bool

Source

pub fn get_stop_position(&self, correlation_id: i64, recording_id: i64) -> bool

Source

pub fn get_max_recorded_position( &self, correlation_id: i64, recording_id: i64, ) -> bool

Source

pub fn stop_recording( &self, correlation_id: i64, channel: &str, stream_id: i32, ) -> bool

Source

pub fn stop_recording_subscription( &self, correlation_id: i64, subscription_id: i64, ) -> bool

Source

pub fn stop_recording_by_identity( &self, correlation_id: i64, recording_id: i64, ) -> bool

Source

pub fn find_last_matching_recording( &self, correlation_id: i64, min_recording_id: i64, channel_fragment: &str, stream_id: i32, session_id: i32, ) -> bool

Source

pub fn list_recording(&self, correlation_id: i64, recording_id: i64) -> bool

Source

pub fn list_recordings( &self, correlation_id: i64, from_recording_id: i64, record_count: i32, ) -> bool

Source

pub fn list_recordings_for_uri( &self, correlation_id: i64, from_recording_id: i64, record_count: i32, channel_fragment: &str, stream_id: i32, ) -> bool

Source

pub fn replay( &self, correlation_id: i64, recording_id: i64, replay_channel: &str, replay_stream_id: i32, params: &AeronArchiveReplayParams, ) -> bool

Source

pub fn truncate_recording( &self, correlation_id: i64, recording_id: i64, position: i64, ) -> bool

Source

pub fn stop_replay(&self, correlation_id: i64, replay_session_id: i64) -> bool

Source

pub fn stop_all_replays(&self, correlation_id: i64, recording_id: i64) -> bool

Source

pub fn list_recording_subscriptions( &self, correlation_id: i64, pseudo_index: i32, subscription_count: i32, channel_fragment: &str, stream_id: i32, apply_stream_id: bool, ) -> bool

Source

pub fn purge_recording(&self, correlation_id: i64, recording_id: i64) -> bool

Source

pub fn extend_recording( &self, recording_id: i64, recording_channel: &str, recording_stream_id: i32, local_source: bool, auto_stop: bool, correlation_id: i64, ) -> bool

Source

pub fn replicate( &self, correlation_id: i64, src_recording_id: i64, src_control_stream_id: i32, src_control_channel: &str, params: &AeronArchiveReplicationParams, ) -> bool

Source

pub fn stop_replication(&self, correlation_id: i64, replication_id: i64) -> bool

Source

pub fn aeron_archive_request_replay_token( &self, correlation_id: i64, recording_id: i64, ) -> bool

Source

pub fn detach_segments( &self, correlation_id: i64, recording_id: i64, new_start_position: i64, ) -> bool

Source

pub fn delete_detached_segments( &self, correlation_id: i64, recording_id: i64, ) -> bool

Source

pub fn purge_segments( &self, correlation_id: i64, recording_id: i64, new_start_position: i64, ) -> bool

Source

pub fn attach_segments(&self, correlation_id: i64, recording_id: i64) -> bool

Source

pub fn migrate_segments( &self, correlation_id: i64, src_recording_id: i64, dst_recording_id: i64, ) -> bool

Source

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

Trait Implementations§

Source§

impl Clone for AeronArchiveProxy

Source§

fn clone(&self) -> AeronArchiveProxy

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 AeronArchiveProxy

Source§

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

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

impl Deref for AeronArchiveProxy

Source§

type Target = aeron_archive_proxy_stct

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl From<&AeronArchiveProxy> for *mut aeron_archive_proxy_t

Source§

fn from(value: &AeronArchiveProxy) -> Self

Converts to this type from the input type.
Source§

impl From<*const aeron_archive_proxy_stct> for AeronArchiveProxy

Source§

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

Converts to this type from the input type.
Source§

impl From<*mut aeron_archive_proxy_stct> for AeronArchiveProxy

Source§

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

Converts to this type from the input type.
Source§

impl From<AeronArchiveProxy> for *mut aeron_archive_proxy_t

Source§

fn from(value: AeronArchiveProxy) -> Self

Converts to this type from the input type.
Source§

impl From<AeronArchiveProxy> for aeron_archive_proxy_t

Source§

fn from(value: AeronArchiveProxy) -> Self

Converts to this type from the input type.
Source§

impl From<aeron_archive_proxy_stct> for AeronArchiveProxy

Source§

fn from(value: aeron_archive_proxy_t) -> Self

Converts to this type from the input type.

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.