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