#[repr(u8)]pub enum MessageType {
Request = 0,
RequestNoReturn = 1,
Notification = 2,
Response = 128,
Error = 129,
TpRequest = 32,
TpRequestNoReturn = 33,
TpNotification = 34,
TpResponse = 160,
TpError = 161,
}Expand description
SOME/IP message types as defined in the specification.
Variants§
Request = 0
Request expecting a response.
RequestNoReturn = 1
Request not expecting a response (fire-and-forget).
Notification = 2
Cyclic or event-based notification.
Response = 128
Response to a request.
Error = 129
Error response to a request.
TpRequest = 32
TP Request (segmented).
TpRequestNoReturn = 33
TP Request not expecting a response.
TpNotification = 34
TP Notification.
TpResponse = 160
TP Response.
TpError = 161
TP Error.
Implementations§
Source§impl MessageType
impl MessageType
Sourcepub fn expects_response(&self) -> bool
pub fn expects_response(&self) -> bool
Check if this message type expects a response.
Sourcepub fn is_response(&self) -> bool
pub fn is_response(&self) -> bool
Check if this is a response message type.
Trait Implementations§
Source§impl Clone for MessageType
impl Clone for MessageType
Source§fn clone(&self) -> MessageType
fn clone(&self) -> MessageType
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MessageType
impl Debug for MessageType
Source§impl Hash for MessageType
impl Hash for MessageType
Source§impl PartialEq for MessageType
impl PartialEq for MessageType
impl Copy for MessageType
impl Eq for MessageType
impl StructuralPartialEq for MessageType
Auto Trait Implementations§
impl Freeze for MessageType
impl RefUnwindSafe for MessageType
impl Send for MessageType
impl Sync for MessageType
impl Unpin for MessageType
impl UnwindSafe for MessageType
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)