Struct rusteron_media_driver::AeronDriverConductor

source ·
pub struct AeronDriverConductor { /* private fields */ }

Implementations§

source§

impl AeronDriverConductor

source

pub fn new( context: &AeronDriverContext, to_driver_commands: AeronMpscRb, to_clients: AeronBroadcastTransmitter, error_log: AeronDistinctErrorLog, counters_manager: AeronCountersManager, system_counters: AeronSystemCounters, conductor_proxy: AeronDriverConductorProxy, loss_reporter: AeronLossReporter, name_resolver: aeron_name_resolver_t, executor: aeron_executor_t, send_channel_endpoint_by_channel_map: AeronStrToPtrHashMap, receive_channel_endpoint_by_channel_map: AeronStrToPtrHashMap, clients: aeron_driver_conductor_stct_client_stct, ipc_subscriptions: aeron_driver_conductor_stct_ipc_subscriptions_stct, ipc_publications: aeron_driver_conductor_stct_ipc_publication_stct, network_subscriptions: aeron_driver_conductor_stct_network_subscriptions_stct, spy_subscriptions: aeron_driver_conductor_stct_spy_subscriptions_stct, network_publications: aeron_driver_conductor_stct_network_publication_stct, send_channel_endpoints: aeron_driver_conductor_stct_send_channel_endpoint_stct, receive_channel_endpoints: aeron_driver_conductor_stct_receive_channel_endpoint_stct, publication_images: aeron_driver_conductor_stct_publication_image_stct, lingering_resources: aeron_driver_conductor_stct_aeron_driver_conductor_lingering_resources_stct, end_of_life_queue: AeronDeque, errors_counter: &mut i64, unblocked_commands_counter: &mut i64, client_timeouts_counter: &mut i64, clock_update_deadline_ns: i64, next_session_id: i32, publication_reserved_session_id_low: i32, publication_reserved_session_id_high: i32, timeout_check_deadline_ns: i64, time_of_last_to_driver_position_change_ns: i64, last_command_consumer_position: i64, async_client_command_in_flight: bool, padding: [u8; 64], ) -> Result<Self, AeronCError>

source

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

source

pub fn context(&self) -> AeronDriverContext

source

pub fn to_driver_commands(&self) -> AeronMpscRb

source

pub fn to_clients(&self) -> AeronBroadcastTransmitter

source

pub fn error_log(&self) -> AeronDistinctErrorLog

source

pub fn counters_manager(&self) -> AeronCountersManager

source

pub fn system_counters(&self) -> AeronSystemCounters

source

pub fn conductor_proxy(&self) -> AeronDriverConductorProxy

source

pub fn loss_reporter(&self) -> AeronLossReporter

source

pub fn name_resolver(&self) -> aeron_name_resolver_t

source

pub fn executor(&self) -> aeron_executor_t

source

pub fn send_channel_endpoint_by_channel_map(&self) -> AeronStrToPtrHashMap

source

pub fn receive_channel_endpoint_by_channel_map(&self) -> AeronStrToPtrHashMap

source

pub fn clients(&self) -> aeron_driver_conductor_stct_client_stct

source

pub fn ipc_subscriptions( &self, ) -> aeron_driver_conductor_stct_ipc_subscriptions_stct

source

pub fn ipc_publications( &self, ) -> aeron_driver_conductor_stct_ipc_publication_stct

source

pub fn network_subscriptions( &self, ) -> aeron_driver_conductor_stct_network_subscriptions_stct

source

pub fn spy_subscriptions( &self, ) -> aeron_driver_conductor_stct_spy_subscriptions_stct

source

pub fn network_publications( &self, ) -> aeron_driver_conductor_stct_network_publication_stct

source

pub fn send_channel_endpoints( &self, ) -> aeron_driver_conductor_stct_send_channel_endpoint_stct

source

pub fn receive_channel_endpoints( &self, ) -> aeron_driver_conductor_stct_receive_channel_endpoint_stct

source

pub fn publication_images( &self, ) -> aeron_driver_conductor_stct_publication_image_stct

source

pub fn lingering_resources( &self, ) -> aeron_driver_conductor_stct_aeron_driver_conductor_lingering_resources_stct

source

pub fn end_of_life_queue(&self) -> AeronDeque

source

pub fn errors_counter(&self) -> &mut i64

source

pub fn unblocked_commands_counter(&self) -> &mut i64

source

pub fn client_timeouts_counter(&self) -> &mut i64

source

pub fn clock_update_deadline_ns(&self) -> i64

source

pub fn next_session_id(&self) -> i32

source

pub fn publication_reserved_session_id_low(&self) -> i32

source

pub fn publication_reserved_session_id_high(&self) -> i32

source

pub fn timeout_check_deadline_ns(&self) -> i64

source

pub fn time_of_last_to_driver_position_change_ns(&self) -> i64

source

pub fn last_command_consumer_position(&self) -> i64

source

pub fn async_client_command_in_flight(&self) -> bool

source

pub fn padding(&self) -> [u8; 64]

source

pub fn aeron_ipc_publication_on_time_event( &self, publication: &AeronIpcPublication, now_ns: i64, now_ms: i64, )

source

pub fn aeron_network_publication_on_time_event( &self, publication: &AeronNetworkPublication, now_ns: i64, now_ms: i64, )

source

pub fn aeron_publication_image_on_time_event( &self, image: &AeronPublicationImage, now_ns: i64, now_ms: i64, )

source

pub fn aeron_client_on_time_event( &self, client: &AeronClient, now_ns: i64, now_ms: i64, )

source

pub fn aeron_client_has_reached_end_of_life(&self, client: &AeronClient) -> bool

source

pub fn add_end_of_life_resource( &self, resource: *mut c_void, free_func: aeron_end_of_life_resource_free_t, )

source

pub fn aeron_client_delete(&self, arg1: &AeronClient)

source

pub fn aeron_ipc_publication_entry_on_time_event( &self, entry: &AeronIpcPublicationEntry, now_ns: i64, now_ms: i64, )

source

pub fn aeron_ipc_publication_entry_has_reached_end_of_life( &self, entry: &AeronIpcPublicationEntry, ) -> bool

source

pub fn aeron_ipc_publication_entry_delete( &self, arg1: &AeronIpcPublicationEntry, )

source

pub fn aeron_ipc_publication_entry_free(&self, entry: &AeronIpcPublicationEntry)

source

pub fn aeron_network_publication_entry_on_time_event( &self, entry: &AeronNetworkPublicationEntry, now_ns: i64, now_ms: i64, )

source

pub fn aeron_network_publication_entry_has_reached_end_of_life( &self, entry: &AeronNetworkPublicationEntry, ) -> bool

source

pub fn aeron_network_publication_entry_delete( &self, arg1: &AeronNetworkPublicationEntry, )

source

pub fn aeron_network_publication_entry_free( &self, entry: &AeronNetworkPublicationEntry, )

source

pub fn aeron_send_channel_endpoint_entry_on_time_event( &self, entry: &AeronSendChannelEndpointEntry, now_ns: i64, now_ms: i64, )

source

pub fn aeron_send_channel_endpoint_entry_has_reached_end_of_life( &self, entry: &AeronSendChannelEndpointEntry, ) -> bool

source

pub fn aeron_send_channel_endpoint_entry_delete( &self, arg1: &AeronSendChannelEndpointEntry, )

source

pub fn aeron_receive_channel_endpoint_entry_on_time_event( &self, entry: &AeronReceiveChannelEndpointEntry, now_ns: i64, now_ms: i64, )

source

pub fn aeron_receive_channel_endpoint_entry_has_reached_end_of_life( &self, entry: &AeronReceiveChannelEndpointEntry, ) -> bool

source

pub fn aeron_receive_channel_endpoint_entry_delete( &self, arg1: &AeronReceiveChannelEndpointEntry, )

source

pub fn aeron_publication_image_entry_on_time_event( &self, entry: &AeronPublicationImageEntry, now_ns: i64, now_ms: i64, )

source

pub fn aeron_publication_image_entry_has_reached_end_of_life( &self, entry: &AeronPublicationImageEntry, ) -> bool

source

pub fn aeron_publication_image_entry_delete( &self, arg1: &AeronPublicationImageEntry, )

source

pub fn aeron_publication_image_entry_free( &self, entry: &AeronPublicationImageEntry, )

source

pub fn aeron_linger_resource_entry_on_time_event( &self, entry: &AeronLingerResourceEntry, now_ns: i64, now_ms: i64, )

source

pub fn aeron_linger_resource_entry_has_reached_end_of_life( &self, entry: &AeronLingerResourceEntry, ) -> bool

source

pub fn aeron_linger_resource_entry_delete( &self, arg1: &AeronLingerResourceEntry, )

source

pub fn image_transition_to_linger(&self, image: &AeronPublicationImage)

source

pub fn init(&self, context: &AeronDriverContext) -> Result<i32, AeronCError>

source

pub fn client_transmit( &self, msg_type_id: i32, message: *const c_void, length: usize, )

source

pub fn on_available_image( &self, correlation_id: i64, stream_id: i32, session_id: i32, log_file_name: &str, subscriber_position_id: i32, subscriber_registration_id: i64, source_identity: &str, )

source

pub fn on_unavailable_image( &self, correlation_id: i64, subscription_registration_id: i64, stream_id: i32, channel: &str, )

source

pub fn on_counter_ready(&self, registration_id: i64, counter_id: i32)

source

pub fn on_unavailable_counter(&self, registration_id: i64, counter_id: i32)

source

pub fn on_client_timeout(&self, correlation_id: i64)

source

pub fn on_static_counter(&self, correlation_id: i64, counter_id: i32)

source

pub fn cleanup_spies(&self, publication: &AeronNetworkPublication)

source

pub fn cleanup_network_publication(&self, publication: &AeronNetworkPublication)

source

pub fn on_command( msg_type_id: i32, message: *const c_void, length: usize, clientd: *mut c_void, ) -> aeron_rb_read_action_t

source

pub fn do_work(clientd: *mut c_void) -> Result<i32, AeronCError>

source

pub fn on_close(clientd: *mut c_void)

source

pub fn on_add_ipc_publication( &self, command: &AeronPublicationCommand, is_exclusive: bool, ) -> Result<i32, AeronCError>

source

pub fn on_add_network_publication( &self, command: &AeronPublicationCommand, is_exclusive: bool, ) -> Result<i32, AeronCError>

source

pub fn on_remove_publication( &self, command: &AeronRemoveCommand, ) -> Result<i32, AeronCError>

source

pub fn on_add_ipc_subscription( &self, command: &AeronSubscriptionCommand, ) -> Result<i32, AeronCError>

source

pub fn on_add_spy_subscription( &self, command: &AeronSubscriptionCommand, ) -> Result<i32, AeronCError>

source

pub fn on_add_network_subscription( &self, command: &AeronSubscriptionCommand, ) -> Result<i32, AeronCError>

source

pub fn on_remove_subscription( &self, command: &AeronRemoveCommand, ) -> Result<i32, AeronCError>

source

pub fn on_client_keepalive(&self, client_id: i64) -> Result<i32, AeronCError>

source

pub fn on_add_send_destination( &self, command: &AeronDestinationCommand, ) -> Result<i32, AeronCError>

source

pub fn on_remove_send_destination( &self, command: &AeronDestinationCommand, ) -> Result<i32, AeronCError>

source

pub fn on_remove_receive_send_destination_by_id( &self, command: &AeronDestinationByIdCommand, ) -> Result<i32, AeronCError>

source

pub fn on_add_receive_ipc_destination( &self, command: &AeronDestinationCommand, ) -> Result<i32, AeronCError>

source

pub fn on_add_receive_spy_destination( &self, command: &AeronDestinationCommand, ) -> Result<i32, AeronCError>

source

pub fn on_add_receive_network_destination( &self, command: &AeronDestinationCommand, ) -> Result<i32, AeronCError>

source

pub fn on_remove_receive_ipc_destination( &self, command: &AeronDestinationCommand, ) -> Result<i32, AeronCError>

source

pub fn on_remove_receive_spy_destination( &self, command: &AeronDestinationCommand, ) -> Result<i32, AeronCError>

source

pub fn on_remove_receive_network_destination( &self, command: &AeronDestinationCommand, ) -> Result<i32, AeronCError>

source

pub fn on_delete_receive_destination(clientd: *mut c_void, cmd: *mut c_void)

source

pub fn on_delete_send_destination(clientd: *mut c_void, cmd: *mut c_void)

source

pub fn on_add_counter( &self, command: &AeronCounterCommand, ) -> Result<i32, AeronCError>

source

pub fn on_remove_counter( &self, command: &AeronRemoveCommand, ) -> Result<i32, AeronCError>

source

pub fn on_add_static_counter( &self, command: &AeronStaticCounterCommand, ) -> Result<i32, AeronCError>

source

pub fn on_client_close( &self, command: &AeronCorrelatedCommand, ) -> Result<i32, AeronCError>

source

pub fn on_terminate_driver( &self, command: &AeronTerminateDriverCommand, ) -> Result<i32, AeronCError>

source

pub fn on_invalidate_image( &self, command: &AeronRejectImageCommand, ) -> Result<i32, AeronCError>

source

pub fn on_create_publication_image(clientd: *mut c_void, item: *mut c_void)

source

pub fn on_re_resolve_endpoint(clientd: *mut c_void, item: *mut c_void)

source

pub fn on_re_resolve_control(clientd: *mut c_void, item: *mut c_void)

source

pub fn on_receive_endpoint_removed(clientd: *mut c_void, item: *mut c_void)

source

pub fn on_response_setup(clientd: *mut c_void, item: *mut c_void)

source

pub fn on_response_connected(clientd: *mut c_void, item: *mut c_void)

source

pub fn on_publication_error(clientd: *mut c_void, item: *mut c_void)

source

pub fn on_release_resource(clientd: *mut c_void, item: *mut c_void)

source

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

Trait Implementations§

source§

impl Clone for AeronDriverConductor

source§

fn clone(&self) -> AeronDriverConductor

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 AeronDriverConductor

source§

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

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

impl Default for AeronDriverConductor

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 AeronDriverConductor

source§

type Target = aeron_driver_conductor_stct

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl From<&AeronDriverConductor> for *mut aeron_driver_conductor_t

source§

fn from(value: &AeronDriverConductor) -> Self

Converts to this type from the input type.
source§

impl From<*const aeron_driver_conductor_stct> for AeronDriverConductor

source§

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

Converts to this type from the input type.
source§

impl From<*mut aeron_driver_conductor_stct> for AeronDriverConductor

source§

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

Converts to this type from the input type.
source§

impl From<AeronDriverConductor> for *mut aeron_driver_conductor_t

source§

fn from(value: AeronDriverConductor) -> Self

Converts to this type from the input type.
source§

impl From<AeronDriverConductor> for aeron_driver_conductor_t

source§

fn from(value: AeronDriverConductor) -> Self

Converts to this type from the input type.
source§

impl From<aeron_driver_conductor_stct> for AeronDriverConductor

source§

fn from(value: aeron_driver_conductor_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 T)

🔬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<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.