Struct nsi::output::WriteCallback
source · pub struct WriteCallback<'a>(/* private fields */);
Available on crate feature
output
only.Expand description
Wrapper to pass an FnWrite
closure to an
OutputDriver
node.
Implementations§
source§impl<'a> WriteCallback<'a>
impl<'a> WriteCallback<'a>
pub fn new<F>(fn_write: F) -> WriteCallback<'a>where F: FnWrite<'a>,
Trait Implementations§
impl CallbackPtr for WriteCallback<'_>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for WriteCallback<'a>
impl<'a> !Send for WriteCallback<'a>
impl<'a> !Sync for WriteCallback<'a>
impl<'a> Unpin for WriteCallback<'a>
impl<'a> !UnwindSafe for WriteCallback<'a>
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