pub struct WritePropertyMultipleError {
pub error_class: ErrorClass,
pub error_code: ErrorCode,
pub first_failed_write_attempt: BACnetObjectPropertyReference,
}Expand description
Formal service-16 Result(-) body with the first failed write coordinate.
Fields§
§error_class: ErrorClassError class from the inner BACnetError.
error_code: ErrorCodeError code from the inner BACnetError.
first_failed_write_attempt: BACnetObjectPropertyReferenceComplete coordinate of the first failed write attempt.
Implementations§
Source§impl WritePropertyMultipleError
impl WritePropertyMultipleError
Sourcepub fn encode(&self, buf: &mut BytesMut)
pub fn encode(&self, buf: &mut BytesMut)
Encode [0] Error followed by [1] BACnetObjectPropertyReference.
Sourcepub fn decode(data: &[u8]) -> Result<Self, Error>
pub fn decode(data: &[u8]) -> Result<Self, Error>
Decode one complete formal service body with no trailing content.
Sourcepub fn to_error_pdu(&self, invoke_id: u8) -> ErrorPdu
pub fn to_error_pdu(&self, invoke_id: u8) -> ErrorPdu
Build an existing low-level ErrorPdu while retaining the formal body.
Sourcepub fn from_error_pdu(pdu: &ErrorPdu) -> Result<Self, Error>
pub fn from_error_pdu(pdu: &ErrorPdu) -> Result<Self, Error>
Decode and verify a formal WPM ErrorPdu.
Trait Implementations§
Source§impl Clone for WritePropertyMultipleError
impl Clone for WritePropertyMultipleError
Source§impl Debug for WritePropertyMultipleError
impl Debug for WritePropertyMultipleError
impl Eq for WritePropertyMultipleError
Source§impl From<WritePropertyMultipleError> for Error
impl From<WritePropertyMultipleError> for Error
Source§fn from(error: WritePropertyMultipleError) -> Self
fn from(error: WritePropertyMultipleError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for WritePropertyMultipleError
Auto Trait Implementations§
impl Freeze for WritePropertyMultipleError
impl RefUnwindSafe for WritePropertyMultipleError
impl Send for WritePropertyMultipleError
impl Sync for WritePropertyMultipleError
impl Unpin for WritePropertyMultipleError
impl UnsafeUnpin for WritePropertyMultipleError
impl UnwindSafe for WritePropertyMultipleError
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