pub struct DidConfig {
pub identifier: u16,
pub readable_in: &'static [u8],
pub writable_in: &'static [u8],
pub security_level: u8,
pub periodic: bool,
pub min_periodic_interval: Duration,
}Expand description
Configuration for a single Data Identifier (DID).
Mirrors a DataObject entry in an ODX file.
Fields§
§identifier: u162-byte DID value.
readable_in: &'static [u8]Sessions in which this DID may be read. Empty = not readable.
writable_in: &'static [u8]Sessions in which this DID may be written. Empty = not writable.
security_level: u8Minimum security level to access this DID. 0 = no security.
periodic: boolWhether this DID may be scheduled for periodic transmission (0x2A).
min_periodic_interval: DurationMinimum interval the server will honor for periodic scheduling. Client-requested intervals shorter than this are clamped up.
Implementations§
Source§impl DidConfig
impl DidConfig
pub const fn read_only(identifier: u16, readable_in: &'static [u8]) -> Self
pub const fn read_write( identifier: u16, readable_in: &'static [u8], writable_in: &'static [u8], ) -> Self
pub const fn periodic(self, min_interval: Duration) -> Self
pub const fn secured(self, level: u8) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DidConfig
impl RefUnwindSafe for DidConfig
impl Send for DidConfig
impl Sync for DidConfig
impl Unpin for DidConfig
impl UnsafeUnpin for DidConfig
impl UnwindSafe for DidConfig
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