Struct submillisecond::Function
source · pub struct Function;
Expand description
Marker type for functions that satisfy ProcessSafeHandler
.
Trait Implementations§
source§impl<T, Arg, Ret> ProcessSafeHandler<Function, Arg, Ret> for Twhere
T: FnPtr<T> + Copy,
FuncRef<T>: Handler<Arg, Ret>,
impl<T, Arg, Ret> ProcessSafeHandler<Function, Arg, Ret> for Twhere T: FnPtr<T> + Copy, FuncRef<T>: Handler<Arg, Ret>,
§type SafeHandler = FuncRef<T>
type SafeHandler = FuncRef<T>
A handler is only safe if it can be cloned and safely sent between
processes.
source§fn safe_handler(self) -> Self::SafeHandler
fn safe_handler(self) -> Self::SafeHandler
Turn type into a safe handler.
Auto Trait Implementations§
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnwindSafe for Function
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