pub struct FnMutControlledMessageHandler { /* private fields */ }
Implementations§
Source§impl FnMutControlledMessageHandler
impl FnMutControlledMessageHandler
pub fn new() -> Self
Sourcepub fn set<T>(
&mut self,
ctx: &mut T,
func: fn(&mut T, &[u8], AeronHeader) -> aeron_controlled_fragment_handler_action_t,
) -> &mut Self
pub fn set<T>( &mut self, ctx: &mut T, func: fn(&mut T, &[u8], AeronHeader) -> aeron_controlled_fragment_handler_action_t, ) -> &mut Self
SAFETY: caller must ensure ctx
outlives any invocation of the provided function.
pub fn call( &mut self, msg: &[u8], header: AeronHeader, ) -> aeron_controlled_fragment_handler_action_t
Trait Implementations§
Source§impl AeronControlledFragmentHandlerCallback for FnMutControlledMessageHandler
impl AeronControlledFragmentHandlerCallback for FnMutControlledMessageHandler
fn handle_aeron_controlled_fragment_handler( &mut self, buffer: &[u8], header: AeronHeader, ) -> aeron_controlled_fragment_handler_action_t
Auto Trait Implementations§
impl Freeze for FnMutControlledMessageHandler
impl RefUnwindSafe for FnMutControlledMessageHandler
impl !Send for FnMutControlledMessageHandler
impl !Sync for FnMutControlledMessageHandler
impl Unpin for FnMutControlledMessageHandler
impl UnwindSafe for FnMutControlledMessageHandler
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