pub struct ReadPropertyResponse {
pub object_identifier: ObjectIdentifier,
pub property_identifier: PropertyIdentifier,
pub property_array_index: Option<u32>,
pub property_values: Vec<PropertyValue>,
}Expand description
Read Property response (confirmed service)
Fields§
§object_identifier: ObjectIdentifierObject identifier that was read
property_identifier: PropertyIdentifierProperty identifier that was read
property_array_index: Option<u32>Property array index (optional)
property_values: Vec<PropertyValue>Property value
Implementations§
Source§impl ReadPropertyResponse
impl ReadPropertyResponse
Sourcepub fn new(
object_identifier: ObjectIdentifier,
property_identifier: PropertyIdentifier,
property_values: Vec<PropertyValue>,
) -> Self
pub fn new( object_identifier: ObjectIdentifier, property_identifier: PropertyIdentifier, property_values: Vec<PropertyValue>, ) -> Self
Create a new Read Property response
Sourcepub fn decode(data: &[u8]) -> EncodingResult<Self>
pub fn decode(data: &[u8]) -> EncodingResult<Self>
Decode a Read Property response
pub fn encode(&self, buffer: &mut Vec<u8>) -> EncodingResult<()>
Trait Implementations§
Source§impl Clone for ReadPropertyResponse
impl Clone for ReadPropertyResponse
Source§fn clone(&self) -> ReadPropertyResponse
fn clone(&self) -> ReadPropertyResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ReadPropertyResponse
impl RefUnwindSafe for ReadPropertyResponse
impl Send for ReadPropertyResponse
impl Sync for ReadPropertyResponse
impl Unpin for ReadPropertyResponse
impl UnsafeUnpin for ReadPropertyResponse
impl UnwindSafe for ReadPropertyResponse
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