pub struct MessageHeader {
pub service_id: ServiceId,
pub method_id: MethodId,
pub instance_id: InstanceId,
pub session_id: u16,
pub message_type: MessageType,
pub return_code: ReturnCode,
}Expand description
SOME/IP message header carrying routing metadata.
Every message exchanged over a Transport is paired with a header that
identifies the target service, method, and instance. The transport layer
uses this information to route the message and correlate request/response
pairs via session_id.
Fields§
§service_id: ServiceIdTarget service identifier.
method_id: MethodIdTarget method or event identifier.
instance_id: InstanceIdTarget service instance.
session_id: u16Session identifier for request/response correlation.
Transports typically assign this automatically; set to 0 in
outgoing calls and let the transport fill it in.
message_type: MessageTypeDiscriminates request, response, notification, and error frames.
return_code: ReturnCodeSOME/IP return code (meaningful in responses and errors).
Trait Implementations§
Source§impl Clone for MessageHeader
impl Clone for MessageHeader
Source§fn clone(&self) -> MessageHeader
fn clone(&self) -> MessageHeader
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MessageHeader
impl RefUnwindSafe for MessageHeader
impl Send for MessageHeader
impl Sync for MessageHeader
impl Unpin for MessageHeader
impl UnsafeUnpin for MessageHeader
impl UnwindSafe for MessageHeader
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