pub struct CreateObjectError {
pub error_class: ErrorClass,
pub error_code: ErrorCode,
pub first_failed_element_number: u32,
}Expand description
The Result(-) body of CreateObject (Clause 15.3.1.3): the error, and the 1-based position of the initial value in the request’s List of Initial Values that could not be applied, or 0 when the request failed for a reason other than one of its initial values.
Fields§
§error_class: ErrorClassError class from the inner BACnetError.
error_code: ErrorCodeError code from the inner BACnetError.
first_failed_element_number: u32Position of the failed initial value, starting at 1, or 0.
Implementations§
Source§impl CreateObjectError
impl CreateObjectError
Sourcepub fn encode(&self, buf: &mut BytesMut)
pub fn encode(&self, buf: &mut BytesMut)
Encode [0] Error followed by [1] first-failed-element-number.
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 CreateObject Error PDU carrying this body.
Trait Implementations§
Source§impl Clone for CreateObjectError
impl Clone for CreateObjectError
impl Copy for CreateObjectError
Source§impl Debug for CreateObjectError
impl Debug for CreateObjectError
impl Eq for CreateObjectError
Source§impl From<CreateObjectError> for Error
impl From<CreateObjectError> for Error
Source§fn from(error: CreateObjectError) -> Self
fn from(error: CreateObjectError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CreateObjectError
impl PartialEq for CreateObjectError
impl StructuralPartialEq for CreateObjectError
Source§impl TryFrom<&ErrorPdu> for CreateObjectError
impl TryFrom<&ErrorPdu> for CreateObjectError
Auto Trait Implementations§
impl Freeze for CreateObjectError
impl RefUnwindSafe for CreateObjectError
impl Send for CreateObjectError
impl Sync for CreateObjectError
impl Unpin for CreateObjectError
impl UnsafeUnpin for CreateObjectError
impl UnwindSafe for CreateObjectError
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