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 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 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 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 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 AeronPublicationErrorFrameHandlerCallback for NoHandler

Source§

impl AeronReservedValueSupplierCallback for NoHandler

Source§

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

Source§

impl AeronStrToPtrHashMapForEachFuncCallback for NoHandler

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