pub struct FunctionTunable<F: AsFunctionTunableResult<Marker>, Marker> { /* private fields */ }
Expand description
Tunable implemented as a function or closure
§Marker
The marker generic is used to work around limitations in the trait resolver that causes conflicting implementation errors.
Trait Implementations§
Source§impl<F: AsFunctionTunableResult<Marker>, Marker: 'static> TuneFn for FunctionTunable<F, Marker>
impl<F: AsFunctionTunableResult<Marker>, Marker: 'static> TuneFn for FunctionTunable<F, Marker>
Source§type Inputs = <F as AsFunctionTunableResult<Marker>>::Inputs
type Inputs = <F as AsFunctionTunableResult<Marker>>::Inputs
Inputs to the tunable function
Source§type Output = <F as AsFunctionTunableResult<Marker>>::Output
type Output = <F as AsFunctionTunableResult<Marker>>::Output
Output from the tunable function
impl<F: AsFunctionTunableResult<Marker> + Send, Marker> Send for FunctionTunable<F, Marker>
impl<F: AsFunctionTunableResult<Marker> + Sync, Marker> Sync for FunctionTunable<F, Marker>
Auto Trait Implementations§
impl<F, Marker> Freeze for FunctionTunable<F, Marker>where
F: Freeze,
impl<F, Marker> RefUnwindSafe for FunctionTunable<F, Marker>where
F: RefUnwindSafe,
Marker: RefUnwindSafe,
impl<F, Marker> Unpin for FunctionTunable<F, Marker>
impl<F, Marker> UnwindSafe for FunctionTunable<F, Marker>where
F: UnwindSafe,
Marker: UnwindSafe,
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