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 AeronArchiveCredentialsChallengeSupplierFuncCallback for NoHandler
impl AeronArchiveCredentialsChallengeSupplierFuncCallback for NoHandler
fn handle_aeron_archive_credentials_challenge_supplier_func( &mut self, encoded_challenge: AeronArchiveEncodedCredentials, ) -> *mut aeron_archive_encoded_credentials_t
Source§impl AeronArchiveCredentialsFreeFuncCallback for NoHandler
impl AeronArchiveCredentialsFreeFuncCallback for NoHandler
fn handle_aeron_archive_credentials_free_func( &mut self, credentials: AeronArchiveEncodedCredentials, )
Source§impl AeronArchiveDelegatingInvokerFuncCallback for NoHandler
impl AeronArchiveDelegatingInvokerFuncCallback for NoHandler
fn handle_aeron_archive_delegating_invoker_func(&mut self)
Source§impl AeronArchiveRecordingDescriptorConsumerFuncCallback for NoHandler
impl AeronArchiveRecordingDescriptorConsumerFuncCallback for NoHandler
fn handle_aeron_archive_recording_descriptor_consumer_func( &mut self, recording_descriptor: AeronArchiveRecordingDescriptor, )
Source§impl AeronArchiveRecordingSignalConsumerFuncCallback for NoHandler
impl AeronArchiveRecordingSignalConsumerFuncCallback for NoHandler
fn handle_aeron_archive_recording_signal_consumer_func( &mut self, recording_signal: AeronArchiveRecordingSignal, )
Source§impl AeronArchiveRecordingSubscriptionDescriptorConsumerFuncCallback for NoHandler
impl AeronArchiveRecordingSubscriptionDescriptorConsumerFuncCallback for NoHandler
fn handle_aeron_archive_recording_subscription_descriptor_consumer_func( &mut self, recording_subscription_descriptor: AeronArchiveRecordingSubscriptionDescriptor, )
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 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 AeronErrorHandlerCallback for NoHandler
impl AeronErrorHandlerCallback for NoHandler
fn handle_aeron_error_handler(&mut self, errcode: c_int, message: &str)
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 AeronNotificationCallback for NoHandler
impl AeronNotificationCallback for NoHandler
fn handle_aeron_notification(&mut self)
Source§impl AeronPublicationErrorFrameHandlerCallback for NoHandler
impl AeronPublicationErrorFrameHandlerCallback for NoHandler
fn handle_aeron_publication_error_frame_handler( &mut self, error_frame: AeronPublicationErrorValues, )
Source§impl AeronReservedValueSupplierCallback for NoHandler
impl AeronReservedValueSupplierCallback for NoHandler
fn handle_aeron_reserved_value_supplier(&mut self, buffer: &mut [u8]) -> i64
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