pub struct Mocker { /* private fields */ }
Implementations
sourceimpl Mocker
impl Mocker
pub fn new(block: Block) -> Self
pub fn input<T>(&mut self, id: usize, data: Vec<T>)where
T: Debug + Send + 'static,
pub fn init_output<T>(&mut self, id: usize, size: usize)where
T: Debug + Send + 'static,
pub fn output<T>(&mut self, id: usize) -> Vec<T>where
T: Debug + Send + 'static,
pub fn run(&mut self)
pub async fn run_async(&mut self)
Auto Trait Implementations
impl !RefUnwindSafe for Mocker
impl Send for Mocker
impl !Sync for Mocker
impl Unpin for Mocker
impl !UnwindSafe for Mocker
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more