pub struct LVUserEvent<T> { /* private fields */ }
Expand description
Representation of a LabVIEW user event reference with type data.
Where the reference is passed into Rust you can use this typed form to then allow proper type completions of the values.
From LabVIEW you can set the terminal to be adapt to type
and handles by value
§Example
#[no_mangle]
pub extern "C" fn generate_event_3(lv_user_event: *mut LVUserEvent<i32>) -> LVStatusCode {
let event = unsafe { *lv_user_event };
let result = event.post(&mut 3);
match result {
Ok(_) => LVStatusCode::SUCCESS,
Err(err) => err.into(),
}
}
Implementations§
Trait Implementations§
Source§impl<T: Clone> Clone for LVUserEvent<T>
impl<T: Clone> Clone for LVUserEvent<T>
Source§fn clone(&self) -> LVUserEvent<T>
fn clone(&self) -> LVUserEvent<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl<T: Copy> Copy for LVUserEvent<T>
Auto Trait Implementations§
impl<T> Freeze for LVUserEvent<T>
impl<T> RefUnwindSafe for LVUserEvent<T>where
T: RefUnwindSafe,
impl<T> Send for LVUserEvent<T>where
T: Send,
impl<T> Sync for LVUserEvent<T>where
T: Sync,
impl<T> Unpin for LVUserEvent<T>where
T: Unpin,
impl<T> UnwindSafe for LVUserEvent<T>where
T: 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