pub struct MulticastCallback(/* private fields */);
Expand description
A Callback
that can be called multiple times. It’s used for multicast IPI events.
Implementations§
Source§impl MulticastCallback
impl MulticastCallback
Sourcepub fn new<F: Fn() + 'static>(callback: F) -> Self
pub fn new<F: Fn() + 'static>(callback: F) -> Self
Create a new MulticastCallback
with the given function.
Sourcepub fn into_unicast(self) -> Callback
pub fn into_unicast(self) -> Callback
Convert the MulticastCallback
into a Callback
.
Trait Implementations§
Source§impl Clone for MulticastCallback
impl Clone for MulticastCallback
Source§fn clone(&self) -> MulticastCallback
fn clone(&self) -> MulticastCallback
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for MulticastCallback
impl !RefUnwindSafe for MulticastCallback
impl !Send for MulticastCallback
impl !Sync for MulticastCallback
impl Unpin for MulticastCallback
impl !UnwindSafe for MulticastCallback
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