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
impl AeronAgentCloseFuncCallback for NoHandler
fn handle_aeron_agent_on_close_func(&mut self)
Source§impl AeronAgentDoWorkFuncCallback for NoHandler
impl AeronAgentDoWorkFuncCallback for NoHandler
fn handle_aeron_agent_do_work_func(&mut self) -> c_int
Source§impl AeronAgentStartFuncCallback for NoHandler
impl AeronAgentStartFuncCallback for NoHandler
fn handle_aeron_agent_on_start_func(&mut self, role_name: &str)
Source§impl AeronAvailableCounterCallback for NoHandler
impl AeronAvailableCounterCallback for NoHandler
fn handle_aeron_on_available_counter( &mut self, counters_reader: AeronCountersReader, registration_id: i64, counter_id: i32, )
Source§impl AeronAvailableImageCallback for NoHandler
impl AeronAvailableImageCallback for NoHandler
fn handle_aeron_on_available_image( &mut self, subscription: AeronSubscription, image: AeronImage, )
Source§impl AeronCloseClientCallback for NoHandler
impl AeronCloseClientCallback for NoHandler
fn handle_aeron_on_close_client(&mut self)
Source§impl AeronCongestionControlStrategyInitialWindowLengthFuncCallback for NoHandler
impl AeronCongestionControlStrategyInitialWindowLengthFuncCallback for NoHandler
fn handle_aeron_congestion_control_strategy_initial_window_length_func( &mut self, ) -> i32
Source§impl AeronCongestionControlStrategyMaxWindowLengthFuncCallback for NoHandler
impl AeronCongestionControlStrategyMaxWindowLengthFuncCallback for NoHandler
fn handle_aeron_congestion_control_strategy_max_window_length_func( &mut self, ) -> i32
Source§impl AeronCongestionControlStrategyRttmFuncCallback for NoHandler
impl AeronCongestionControlStrategyRttmFuncCallback for NoHandler
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
impl AeronCongestionControlStrategyRttmSentFuncCallback for NoHandler
fn handle_aeron_congestion_control_strategy_on_rttm_sent_func( &mut self, now_ns: i64, )
Source§impl AeronCongestionControlStrategyShouldMeasureRttFuncCallback for NoHandler
impl AeronCongestionControlStrategyShouldMeasureRttFuncCallback for NoHandler
fn handle_aeron_congestion_control_strategy_should_measure_rtt_func( &mut self, now_ns: i64, ) -> bool
Source§impl AeronControlledFragmentHandlerCallback for NoHandler
impl AeronControlledFragmentHandlerCallback for NoHandler
fn handle_aeron_controlled_fragment_handler( &mut self, buffer: &[u8], header: AeronHeader, ) -> aeron_controlled_fragment_handler_action_t
Source§impl AeronDriverTerminationHookFuncCallback for NoHandler
impl AeronDriverTerminationHookFuncCallback for NoHandler
fn handle_aeron_driver_termination_hook_func(&mut self)
Source§impl AeronDriverTerminationValidatorFuncCallback for NoHandler
impl AeronDriverTerminationValidatorFuncCallback for NoHandler
fn handle_aeron_driver_termination_validator_func( &mut self, buffer: &mut [u8], ) -> bool
Source§impl AeronDutyCycleTrackerMeasureAndUpdateFuncCallback for NoHandler
impl AeronDutyCycleTrackerMeasureAndUpdateFuncCallback for NoHandler
fn handle_aeron_duty_cycle_tracker_measure_and_update_func( &mut self, now_ns: i64, )
Source§impl AeronDutyCycleTrackerUpdateFuncCallback for NoHandler
impl AeronDutyCycleTrackerUpdateFuncCallback for NoHandler
fn handle_aeron_duty_cycle_tracker_update_func(&mut self, now_ns: i64)
Source§impl AeronEndOfLifeResourceFreeCallback for NoHandler
impl AeronEndOfLifeResourceFreeCallback for NoHandler
fn handle_aeron_end_of_life_resource_free(&mut self) -> bool
Source§impl AeronErrorHandlerCallback for NoHandler
impl AeronErrorHandlerCallback for NoHandler
fn handle_aeron_error_handler(&mut self, errcode: c_int, message: &str)
Source§impl AeronFlowControlStrategyErrorFuncCallback for NoHandler
impl AeronFlowControlStrategyErrorFuncCallback for NoHandler
fn handle_aeron_flow_control_strategy_on_error_func( &mut self, error: &[u8], recv_addr: SockaddrStorage, now_ns: i64, )
Source§impl AeronFlowControlStrategySmFuncCallback for NoHandler
impl AeronFlowControlStrategySmFuncCallback for NoHandler
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
impl AeronFlowControlStrategyTriggerSendSetupFuncCallback for NoHandler
fn handle_aeron_flow_control_strategy_on_trigger_send_setup_func( &mut self, sm: &[u8], recv_addr: SockaddrStorage, now_ns: i64, )
Source§impl AeronFragmentHandlerCallback for NoHandler
impl AeronFragmentHandlerCallback for NoHandler
fn handle_aeron_fragment_handler(&mut self, buffer: &[u8], header: AeronHeader)
Source§impl AeronIdleStrategyFuncCallback for NoHandler
impl AeronIdleStrategyFuncCallback for NoHandler
fn handle_aeron_idle_strategy_func(&mut self, work_count: c_int)
Source§impl AeronIfaddrFuncCallback for NoHandler
impl AeronIfaddrFuncCallback for NoHandler
Source§impl AeronInt64CounterMapForEachFuncCallback for NoHandler
impl AeronInt64CounterMapForEachFuncCallback for NoHandler
fn handle_aeron_int64_counter_map_for_each_func(&mut self, key: i64, value: i64)
Source§impl AeronLossGeneratorShouldDropFrameSimpleFuncCallback for NoHandler
impl AeronLossGeneratorShouldDropFrameSimpleFuncCallback for NoHandler
fn handle_aeron_loss_generator_should_drop_frame_simple_func( &mut self, address: *const sockaddr_storage, buffer: &[u8], ) -> bool
Source§impl AeronNotificationCallback for NoHandler
impl AeronNotificationCallback for NoHandler
fn handle_aeron_notification(&mut self)
Source§impl AeronPortManagerFreeManagedPortFuncCallback for NoHandler
impl AeronPortManagerFreeManagedPortFuncCallback for NoHandler
fn handle_aeron_port_manager_free_managed_port_func( &mut self, bind_addr: SockaddrStorage, )
Source§impl AeronPortManagerGetManagedPortFuncCallback for NoHandler
impl AeronPortManagerGetManagedPortFuncCallback for NoHandler
fn handle_aeron_port_manager_get_managed_port_func( &mut self, bind_addr_out: SockaddrStorage, udp_channel: AeronUdpChannel, bind_addr: SockaddrStorage, ) -> c_int
Source§impl AeronPublicationErrorFrameHandlerCallback for NoHandler
impl AeronPublicationErrorFrameHandlerCallback for NoHandler
fn handle_aeron_publication_error_frame_handler( &mut self, error_frame: AeronPublicationErrorValues, )
Source§impl AeronQueueDrainFuncCallback for NoHandler
impl AeronQueueDrainFuncCallback for NoHandler
fn handle_aeron_queue_drain_func(&mut self, item: *mut c_void)
Source§impl AeronRbControlledHandlerCallback for NoHandler
impl AeronRbControlledHandlerCallback for NoHandler
fn handle_aeron_rb_controlled_handler( &mut self, arg1: i32, arg2: *const c_void, arg3: usize, ) -> aeron_rb_read_action_t
Source§impl AeronRbHandlerCallback for NoHandler
impl AeronRbHandlerCallback for NoHandler
Source§impl AeronReceiveChannelLossSupplierFuncCallback for NoHandler
impl AeronReceiveChannelLossSupplierFuncCallback for NoHandler
fn handle_aeron_receive_channel_loss_supplier_func( &mut self, endpoint: *mut aeron_receive_channel_endpoint_stct, )
Source§impl AeronReservedValueSupplierCallback for NoHandler
impl AeronReservedValueSupplierCallback for NoHandler
fn handle_aeron_reserved_value_supplier(&mut self, buffer: &mut [u8]) -> i64
Source§impl AeronSendChannelLossSupplierFuncCallback for NoHandler
impl AeronSendChannelLossSupplierFuncCallback for NoHandler
fn handle_aeron_send_channel_loss_supplier_func( &mut self, endpoint: *mut aeron_send_channel_endpoint_stct, )
Auto Trait Implementations§
impl Freeze for NoHandler
impl RefUnwindSafe for NoHandler
impl Send for NoHandler
impl Sync for NoHandler
impl Unpin for NoHandler
impl UnsafeUnpin for NoHandler
impl UnwindSafe for NoHandler
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more