pub struct NoHandler;Expand description
A type that represents an unset callback.
Pass Handlers::NONE to leave an optional callback unset.
The constant is None::<&SharedHandler<NoHandler>>.
NoHandler implements every generated callback trait, so the compiler infers
the callback type without a helper or explicit type arguments. This also works
for methods with several callbacks, such as async_add_subscription.
C receives null callback and client-data pointers, so it never calls these methods.
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<Borrowed<aeron_counters_reader_t>>, 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<Borrowed<aeron_subscription_t>>, image: &AeronImage<Borrowed<aeron_image_t>>, )
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<Borrowed<aeron_header_t>>, ) -> 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<Borrowed<aeron_header_t>>, )
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<Borrowed<aeron_publication_error_values_t>>, )
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