pub struct OwnedDiagnosticMessageAck {
pub source_address: LogicalAddress,
pub target_address: LogicalAddress,
pub ack_code: DiagnosticAckCode,
pub previous_message_data: Vec<u8>,
}Expand description
Owned mirror of DiagnosticMessageAck for values that must outlive an RX buffer
(tokio channels, ServerConnectionHandler responses).
Fields§
§source_address: LogicalAddressLogical address of the entity sending this acknowledgement.
target_address: LogicalAddressLogical address of the entity this acknowledgement is addressed to (the original diagnostic message’s sender).
ack_code: DiagnosticAckCodeWhether the diagnostic message was accepted, and if not, why.
previous_message_data: Vec<u8>The first bytes of the diagnostic message being acknowledged, echoed back so the sender can correlate this ACK/NACK with its request.
Implementations§
Source§impl OwnedDiagnosticMessageAck
impl OwnedDiagnosticMessageAck
Sourcepub fn as_ref(&self) -> DiagnosticMessageAck<'_>
pub fn as_ref(&self) -> DiagnosticMessageAck<'_>
Cheap borrowed view for encode paths and read-only inspection.
Trait Implementations§
Source§impl Clone for OwnedDiagnosticMessageAck
impl Clone for OwnedDiagnosticMessageAck
Source§fn clone(&self) -> OwnedDiagnosticMessageAck
fn clone(&self) -> OwnedDiagnosticMessageAck
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 moreSource§impl Debug for OwnedDiagnosticMessageAck
Available on crate feature alloc only.
impl Debug for OwnedDiagnosticMessageAck
Available on crate feature
alloc only.impl Eq for OwnedDiagnosticMessageAck
impl StructuralPartialEq for OwnedDiagnosticMessageAck
Auto Trait Implementations§
impl Freeze for OwnedDiagnosticMessageAck
impl RefUnwindSafe for OwnedDiagnosticMessageAck
impl Send for OwnedDiagnosticMessageAck
impl Sync for OwnedDiagnosticMessageAck
impl Unpin for OwnedDiagnosticMessageAck
impl UnsafeUnpin for OwnedDiagnosticMessageAck
impl UnwindSafe for OwnedDiagnosticMessageAck
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