pub struct ParameterInfo {
pub id: u32,
pub data_type: u32,
pub data_size: u32,
pub number_of_elements: u32,
pub flags: u32,
pub permissions: u32,
pub param_type: i32,
pub group_id: i32,
pub unit: i32,
pub path: String,
}
Expand description
Parameter information fields.
Active state of the parameter in the tree, including its name, size, data type, io type and active flags.
Fields§
§id: u32
Unique id, assigned by parameter server.
data_type: u32
Tag of the data type.
data_size: u32
Size of one data element.
number_of_elements: u32
Number of the elements.
flags: u32
Parameter flags (overwrite, link etc…).
permissions: u32
Access permissions.
param_type: i32
I/O type of the parameter.
group_id: i32
Group ID of the owner.
unit: i32
SI unit of the parameter.
path: String
Path (including name) of the parameter.
Implementations§
Source§impl ParameterInfo
impl ParameterInfo
Sourcepub fn param_type(&self) -> ParameterType
pub fn param_type(&self) -> ParameterType
Returns the enum value of param_type
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_param_type(&mut self, value: ParameterType)
pub fn set_param_type(&mut self, value: ParameterType)
Sets param_type
to the provided enum value.
Sourcepub fn group_id(&self) -> UserGroup
pub fn group_id(&self) -> UserGroup
Returns the enum value of group_id
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_group_id(&mut self, value: UserGroup)
pub fn set_group_id(&mut self, value: UserGroup)
Sets group_id
to the provided enum value.
Trait Implementations§
Source§impl Clone for ParameterInfo
impl Clone for ParameterInfo
Source§fn clone(&self) -> ParameterInfo
fn clone(&self) -> ParameterInfo
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 ParameterInfo
impl Debug for ParameterInfo
Source§impl Default for ParameterInfo
impl Default for ParameterInfo
Source§impl Message for ParameterInfo
impl Message for ParameterInfo
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.Source§impl PartialEq for ParameterInfo
impl PartialEq for ParameterInfo
impl StructuralPartialEq for ParameterInfo
Auto Trait Implementations§
impl Freeze for ParameterInfo
impl RefUnwindSafe for ParameterInfo
impl Send for ParameterInfo
impl Sync for ParameterInfo
impl Unpin for ParameterInfo
impl UnwindSafe for ParameterInfo
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