pub struct SubInfo {
pub size: usize,
pub data_type: DataType,
pub access_type: AccessType,
pub pdo_mapping: PdoMappable,
pub persist: bool,
}Expand description
Information about a sub object
Fields§
§size: usizeThe size (or max size) of this sub object, in bytes
data_type: DataTypeThe data type of this sub object
access_type: AccessTypeIndicates what accesses (i.e. read/write) are allowed on this sub object
pdo_mapping: PdoMappableIndicates whether this sub may be mapped to PDOs
persist: boolIndicates whether this sub should be persisted when data is saved
Implementations§
Source§impl SubInfo
impl SubInfo
Sourcepub const MAX_SUB_NUMBER: SubInfo
pub const MAX_SUB_NUMBER: SubInfo
A shorthand value for sub0 on record and array objects
Sourcepub const fn new_visibile_str(size: usize) -> Self
pub const fn new_visibile_str(size: usize) -> Self
Convenience function for creating a new sub-info by type
Sourcepub const fn const_access(self) -> Self
pub const fn const_access(self) -> Self
Convenience function to set the access_type to const
Trait Implementations§
impl Copy for SubInfo
impl StructuralPartialEq for SubInfo
Auto Trait Implementations§
impl Freeze for SubInfo
impl RefUnwindSafe for SubInfo
impl Send for SubInfo
impl Sync for SubInfo
impl Unpin for SubInfo
impl UnwindSafe for SubInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more