pub struct SyncApplier<T, F>{ /* private fields */ }Expand description
Convenience wrapper for synchronous appliers. Most appliers
just set an atomic or reconfigure a rate limiter and have no
genuine async work to do — this wrapper lifts a plain
Fn(T) -> Result<(), String> into a ControlApplier<T>.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T, F> Freeze for SyncApplier<T, F>
impl<T, F> RefUnwindSafe for SyncApplier<T, F>
impl<T, F> Send for SyncApplier<T, F>
impl<T, F> Sync for SyncApplier<T, F>
impl<T, F> Unpin for SyncApplier<T, F>
impl<T, F> UnsafeUnpin for SyncApplier<T, F>
impl<T, F> UnwindSafe for SyncApplier<T, F>
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