pub struct Occurence(/* private fields */);
Expand description
A LabVIEW occurence which can be used to provide synchronisation between execution of Rust and LabVIEW code.
From LabVIEW you can set the terminal to be adapt to type
and handles by value
§Example
#[no_mangle]
pub extern "C" fn generate_occurence(occurence: *mut Occurence) -> LVStatusCode {
let result = unsafe { (*occurence).set() };
match result {
Ok(_) => LVStatusCode::SUCCESS,
Err(err) => err.into(),
}
}
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Occurence
impl RefUnwindSafe for Occurence
impl Send for Occurence
impl Sync for Occurence
impl Unpin for Occurence
impl UnwindSafe for Occurence
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