pub struct OwnedDiagnosticMessage {
pub source_address: LogicalAddress,
pub target_address: LogicalAddress,
pub user_data: Vec<u8>,
}Expand description
Owned mirror of DiagnosticMessage for values that must outlive an RX buffer
(tokio channels, ServerConnectionHandler responses).
Fields§
§source_address: LogicalAddressLogical address of the entity sending this diagnostic message.
target_address: LogicalAddressLogical address of the entity this diagnostic message is addressed to.
user_data: Vec<u8>The diagnostic payload itself (e.g. a UDS request/response), treated as opaque bytes by this crate.
Implementations§
Source§impl OwnedDiagnosticMessage
impl OwnedDiagnosticMessage
Sourcepub fn as_ref(&self) -> DiagnosticMessage<'_>
pub fn as_ref(&self) -> DiagnosticMessage<'_>
Cheap borrowed view for encode paths and read-only inspection.
Trait Implementations§
Source§impl Clone for OwnedDiagnosticMessage
impl Clone for OwnedDiagnosticMessage
Source§fn clone(&self) -> OwnedDiagnosticMessage
fn clone(&self) -> OwnedDiagnosticMessage
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 OwnedDiagnosticMessage
impl Debug for OwnedDiagnosticMessage
impl Eq for OwnedDiagnosticMessage
Source§impl PartialEq for OwnedDiagnosticMessage
impl PartialEq for OwnedDiagnosticMessage
impl StructuralPartialEq for OwnedDiagnosticMessage
Auto Trait Implementations§
impl Freeze for OwnedDiagnosticMessage
impl RefUnwindSafe for OwnedDiagnosticMessage
impl Send for OwnedDiagnosticMessage
impl Sync for OwnedDiagnosticMessage
impl Unpin for OwnedDiagnosticMessage
impl UnsafeUnpin for OwnedDiagnosticMessage
impl UnwindSafe for OwnedDiagnosticMessage
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