Struct futuresdr::blocks::FiniteSource
source · pub struct FiniteSource<F, A>where
F: FnMut() -> Option<A> + Send + 'static,
A: Send + 'static,{ /* private fields */ }
Expand description
Repeatedly apply a function to generate samples, using Option values to allow termination.
Implementations§
Auto Trait Implementations§
impl<F, A> RefUnwindSafe for FiniteSource<F, A>where A: RefUnwindSafe, F: RefUnwindSafe,
impl<F, A> Send for FiniteSource<F, A>
impl<F, A> Sync for FiniteSource<F, A>where A: Sync, F: Sync,
impl<F, A> Unpin for FiniteSource<F, A>where A: Unpin, F: Unpin,
impl<F, A> UnwindSafe for FiniteSource<F, A>where A: UnwindSafe, 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