Struct zen_engine::loader::ClosureLoader
source · pub struct ClosureLoader<F>where
F: Sync + Send,{ /* private fields */ }Expand description
Loads decisions using an async closure
Implementations§
Trait Implementations§
source§impl<F, O> DecisionLoader for ClosureLoader<F>where
F: Fn(&str) -> O + Sync + Send,
O: Future<Output = LoaderResponse> + Send,
impl<F, O> DecisionLoader for ClosureLoader<F>where F: Fn(&str) -> O + Sync + Send, O: Future<Output = LoaderResponse> + Send,
Auto Trait Implementations§
impl<F> RefUnwindSafe for ClosureLoader<F>where F: RefUnwindSafe,
impl<F> Send for ClosureLoader<F>
impl<F> Sync for ClosureLoader<F>
impl<F> Unpin for ClosureLoader<F>where F: Unpin,
impl<F> UnwindSafe for ClosureLoader<F>where F: 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