#[repr(C)]pub struct XPLMDataRefInfo_t {
pub structSize: c_int,
pub name: *const c_char,
pub type_: XPLMDataTypeID,
pub writable: c_int,
pub owner: XPLMPluginID,
}Expand description
XPLMDataRefInfo_t
The XPLMDataRefInfo_t structure contains all of the information about a single data ref. The structure can be expanded in future SDK APIs to include more features. Always set the structSize member to the size of your struct in bytes!
Fields§
§structSize: c_intUsed to inform XPLMGetDatarefInfo() of the SDK version you compiled * against; should always be set to sizeof(XPLMDataRefInfo_t)
name: *const c_charThe full name/path of the data ref
type_: XPLMDataTypeID§writable: c_intTRUE if the data ref permits writing to it. FALSE if it’s read-only.
owner: XPLMPluginIDThe handle to the plugin that registered this dataref.
Trait Implementations§
Source§impl Clone for XPLMDataRefInfo_t
impl Clone for XPLMDataRefInfo_t
Source§fn clone(&self) -> XPLMDataRefInfo_t
fn clone(&self) -> XPLMDataRefInfo_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 moreSource§impl Debug for XPLMDataRefInfo_t
impl Debug for XPLMDataRefInfo_t
impl Copy for XPLMDataRefInfo_t
Auto Trait Implementations§
impl Freeze for XPLMDataRefInfo_t
impl RefUnwindSafe for XPLMDataRefInfo_t
impl !Send for XPLMDataRefInfo_t
impl !Sync for XPLMDataRefInfo_t
impl Unpin for XPLMDataRefInfo_t
impl UnwindSafe for XPLMDataRefInfo_t
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