Skip to main content

NoHandler

Struct NoHandler 

Source
pub struct NoHandler;
Expand description

Type-level “no callback” sentinel.

Pass Handlers::NONE (which is None::<&Handler<NoHandler>>) to any callback-accepting method to leave that callback unset. NoHandler implements every generated callback trait, so the method’s callback generic is inferred as NoHandler without a per-callback helper or turbofish — including methods with several callback parameters (e.g. async_add_subscription’s image handlers). Its callback methods are unreachable: the C side is handed a null callback + null clientd, so they can never fire.

Trait Implementations§

Source§

impl AeronAgentCloseFuncCallback for NoHandler

Source§

impl AeronAgentDoWorkFuncCallback for NoHandler

Source§

impl AeronAgentStartFuncCallback for NoHandler

Source§

impl AeronAvailableCounterCallback for NoHandler

Source§

fn handle_aeron_on_available_counter( &mut self, counters_reader: AeronCountersReader, registration_id: i64, counter_id: i32, )

Source§

impl AeronAvailableImageCallback for NoHandler

Source§

impl AeronBlockHandlerCallback for NoHandler

Source§

fn handle_aeron_block_handler( &mut self, buffer: &[u8], session_id: i32, term_id: i32, )

Source§

impl AeronCloseClientCallback for NoHandler

Source§

impl AeronCongestionControlStrategyInitialWindowLengthFuncCallback for NoHandler

Source§

impl AeronCongestionControlStrategyMaxWindowLengthFuncCallback for NoHandler

Source§

impl AeronCongestionControlStrategyRttmFuncCallback for NoHandler

Source§

fn handle_aeron_congestion_control_strategy_on_rttm_func( &mut self, now_ns: i64, rtt_ns: i64, source_address: SockaddrStorage, )

Source§

impl AeronCongestionControlStrategyRttmSentFuncCallback for NoHandler

Source§

impl AeronCongestionControlStrategyShouldMeasureRttFuncCallback for NoHandler

Source§

impl AeronControlledFragmentHandlerCallback for NoHandler

Source§

impl AeronCountersReaderForeachCounterFuncCallback for NoHandler

Source§

fn handle_aeron_counters_reader_foreach_counter_func( &mut self, value: i64, id: i32, type_id: i32, key: &[u8], label: &str, )

Source§

impl AeronCountersReaderForeachMetadataFuncCallback for NoHandler

Source§

fn handle_aeron_counters_reader_foreach_metadata_func( &mut self, id: i32, type_id: i32, key: &[u8], label: &[u8], )

Source§

impl AeronDriverTerminationHookFuncCallback for NoHandler

Source§

impl AeronDriverTerminationValidatorFuncCallback for NoHandler

Source§

impl AeronDutyCycleTrackerMeasureAndUpdateFuncCallback for NoHandler

Source§

impl AeronDutyCycleTrackerUpdateFuncCallback for NoHandler

Source§

impl AeronEndOfLifeResourceFreeCallback for NoHandler

Source§

impl AeronErrorHandlerCallback for NoHandler

Source§

fn handle_aeron_error_handler(&mut self, errcode: c_int, message: &str)

Source§

impl AeronErrorLogReaderFuncCallback for NoHandler

Source§

fn handle_aeron_error_log_reader_func( &mut self, observation_count: i32, first_observation_timestamp: i64, last_observation_timestamp: i64, error: &str, )

Source§

impl AeronFlowControlStrategyErrorFuncCallback for NoHandler

Source§

fn handle_aeron_flow_control_strategy_on_error_func( &mut self, error: &[u8], recv_addr: SockaddrStorage, now_ns: i64, )

Source§

impl AeronFlowControlStrategyIdleFuncCallback for NoHandler

Source§

fn handle_aeron_flow_control_strategy_on_idle_func( &mut self, now_ns: i64, snd_lmt: i64, snd_pos: i64, is_end_of_stream: bool, ) -> i64

Source§

impl AeronFlowControlStrategyMaxRetransmissionLengthFuncCallback for NoHandler

Source§

fn handle_aeron_flow_control_strategy_max_retransmission_length_func( &mut self, term_offset: usize, resend_length: usize, term_buffer_length: usize, mtu_length: usize, ) -> usize

Source§

impl AeronFlowControlStrategySetupFuncCallback for NoHandler

Source§

fn handle_aeron_flow_control_strategy_on_setup_func( &mut self, setup: &[u8], now_ns: i64, snd_lmt: i64, position_bits_to_shift: usize, snd_pos: i64, ) -> i64

Source§

impl AeronFlowControlStrategySmFuncCallback for NoHandler

Source§

fn handle_aeron_flow_control_strategy_on_sm_func( &mut self, sm: &[u8], recv_addr: SockaddrStorage, snd_lmt: i64, initial_term_id: i32, position_bits_to_shift: usize, now_ns: i64, ) -> i64

Source§

impl AeronFlowControlStrategyTriggerSendSetupFuncCallback for NoHandler

Source§

impl AeronFprintfHandlerCallback for NoHandler

Source§

fn handle_aeron_fprintf_handler( &mut self, arg1: &str, arg2: u64, arg4: &str, arg5: *mut c_char, ) -> c_int

Source§

impl AeronFragmentHandlerCallback for NoHandler

Source§

fn handle_aeron_fragment_handler(&mut self, buffer: &[u8], header: AeronHeader)

Source§

impl AeronIdleStrategyFuncCallback for NoHandler

Source§

impl AeronIfaddrFuncCallback for NoHandler

Source§

fn handle_aeron_ifaddr_func( &mut self, name: &str, addr: Sockaddr, netmask: Sockaddr, flags: c_uint, ) -> c_int

Source§

impl AeronInt64CounterMapForEachFuncCallback for NoHandler

Source§

impl AeronInt64CounterMapPredicateFuncCallback for NoHandler

Source§

impl AeronInt64ToPtrHashMapForEachFuncCallback for NoHandler

Source§

impl AeronInt64ToPtrHashMapPredicateFuncCallback for NoHandler

Source§

impl AeronInt64ToTaggedPtrHashMapForEachFuncCallback for NoHandler

Source§

impl AeronInt64ToTaggedPtrHashMapPredicateFuncCallback for NoHandler

Source§

impl AeronLossGeneratorShouldDropFrameDetailedFuncCallback for NoHandler

Source§

fn handle_aeron_loss_generator_should_drop_frame_detailed_func( &mut self, address: *const sockaddr_storage, buffer: *const u8, stream_id: i32, session_id: i32, term_id: i32, term_offset: i32, length: i32, ) -> bool

Source§

impl AeronLossGeneratorShouldDropFrameSimpleFuncCallback for NoHandler

Source§

impl AeronLossReporterReadEntryFuncCallback for NoHandler

Source§

fn handle_aeron_loss_reporter_read_entry_func( &mut self, observation_count: i64, total_bytes_lost: i64, first_observation_timestamp: i64, last_observation_timestamp: i64, session_id: i32, stream_id: i32, channel: &str, source: &str, )

Source§

impl AeronNewPublicationCallback for NoHandler

Source§

fn handle_aeron_on_new_publication( &mut self, channel: &str, stream_id: i32, session_id: i32, correlation_id: i64, )

Source§

impl AeronNewSubscriptionCallback for NoHandler

Source§

fn handle_aeron_on_new_subscription( &mut self, channel: &str, stream_id: i32, correlation_id: i64, )

Source§

impl AeronNotificationCallback for NoHandler

Source§

impl AeronPortManagerFreeManagedPortFuncCallback for NoHandler

Source§

impl AeronPortManagerGetManagedPortFuncCallback for NoHandler

Source§

impl AeronPublicationErrorFrameHandlerCallback for NoHandler

Source§

impl AeronQueueDrainFuncCallback for NoHandler

Source§

impl AeronRbControlledHandlerCallback for NoHandler

Source§

impl AeronRbHandlerCallback for NoHandler

Source§

fn handle_aeron_rb_handler( &mut self, arg1: i32, arg2: *const c_void, arg3: usize, )

Source§

impl AeronReceiveChannelLossSupplierFuncCallback for NoHandler

Source§

impl AeronReservedValueSupplierCallback for NoHandler

Source§

fn handle_aeron_reserved_value_supplier(&mut self, buffer: &mut [u8]) -> i64

Source§

impl AeronRetransmitHandlerResendFuncCallback for NoHandler

Source§

fn handle_aeron_retransmit_handler_resend_func( &mut self, term_id: i32, term_offset: i32, length: usize, ) -> c_int

Source§

impl AeronSendChannelLossSupplierFuncCallback for NoHandler

Source§

impl AeronStrToPtrHashMapForEachFuncCallback for NoHandler

Source§

impl AeronTermGapScannerGapDetectedFuncCallback for NoHandler

Source§

fn handle_aeron_term_gap_scanner_on_gap_detected_func( &mut self, term_id: i32, term_offset: i32, length: usize, )

Source§

impl AeronUnavailableCounterCallback for NoHandler

Source§

fn handle_aeron_on_unavailable_counter( &mut self, counters_reader: AeronCountersReader, registration_id: i64, counter_id: i32, )

Source§

impl AeronUnavailableImageCallback for NoHandler

Source§

impl AeronUriHostnameResolverFuncCallback for NoHandler

Source§

impl AeronUriParseCallbackCallback for NoHandler

Source§

fn handle_aeron_uri_parse_callback(&mut self, key: &str, value: &str) -> c_int

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