pub struct Fuse<T: LinkReference, H: FnMut(Link<T>, Link<T>) -> Flow> { /* private fields */ }Expand description
A write-handler wrapper that stops calling the inner handler once it returns Flow::Break.
After the first Break, every subsequent call to Fuse::call also returns Break
without invoking the wrapped closure.
Implementations§
Auto Trait Implementations§
impl<T, H> Freeze for Fuse<T, H>
impl<T, H> RefUnwindSafe for Fuse<T, H>
impl<T, H> Send for Fuse<T, H>
impl<T, H> Sync for Fuse<T, H>
impl<T, H> Unpin for Fuse<T, H>
impl<T, H> UnsafeUnpin for Fuse<T, H>
impl<T, H> UnwindSafe for Fuse<T, H>
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