pub struct PrivateTransferError {
pub error_class: ErrorClass,
pub error_code: ErrorCode,
pub vendor_id: u32,
pub service_number: u32,
pub error_parameters: Option<Vec<u8>>,
}Expand description
The Result(-) body of ConfirmedPrivateTransfer (Clause 16.2.1.3).
Fields§
§error_class: ErrorClassError class from the inner BACnetError.
error_code: ErrorCodeError code from the inner BACnetError.
vendor_id: u32Vendor identifier of the private service the error answers.
service_number: u32Vendor-defined service number the error answers.
error_parameters: Option<Vec<u8>>Vendor-defined error parameters (raw bytes inside the [3] frame,
opaque to the stack); None when absent.
Implementations§
Source§impl PrivateTransferError
impl PrivateTransferError
Sourcepub fn encode(&self, buf: &mut BytesMut)
pub fn encode(&self, buf: &mut BytesMut)
Encode the body: the error, vendor, service and any parameters.
Sourcepub fn decode(data: &[u8]) -> Result<Self, Error>
pub fn decode(data: &[u8]) -> Result<Self, Error>
Decode one complete 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 the ConfirmedPrivateTransfer Error PDU carrying this body.
Trait Implementations§
Source§impl Clone for PrivateTransferError
impl Clone for PrivateTransferError
Source§impl Debug for PrivateTransferError
impl Debug for PrivateTransferError
impl Eq for PrivateTransferError
Source§impl From<PrivateTransferError> for Error
impl From<PrivateTransferError> for Error
Source§fn from(error: PrivateTransferError) -> Self
fn from(error: PrivateTransferError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PrivateTransferError
impl PartialEq for PrivateTransferError
impl StructuralPartialEq for PrivateTransferError
Source§impl TryFrom<&ErrorPdu> for PrivateTransferError
impl TryFrom<&ErrorPdu> for PrivateTransferError
Auto Trait Implementations§
impl Freeze for PrivateTransferError
impl RefUnwindSafe for PrivateTransferError
impl Send for PrivateTransferError
impl Sync for PrivateTransferError
impl Unpin for PrivateTransferError
impl UnsafeUnpin for PrivateTransferError
impl UnwindSafe for PrivateTransferError
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