#[non_exhaustive]pub enum MessageType {
Request,
RequestNoReturn,
Notification,
Response,
Error,
Unknown(u8),
}Expand description
Type of a SOME/IP message.
It’s used both by servers and clients to specify how the message should be interpreted by the peer.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Request
A request expecting a response.
RequestNoReturn
A fire-and-forget request.
Notification
A notification or event callback expecting no response.
Response
A response message.
Error
A response containing an error.
Unknown(u8)
Unknown message type.
Implementations§
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 · 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 MessageType
impl Debug for MessageType
Source§impl Default for MessageType
impl Default for MessageType
Source§fn default() -> MessageType
fn default() -> MessageType
Returns the “default value” for a type. Read more
Source§impl Deserialize for MessageType
impl Deserialize for MessageType
Source§type Output = MessageType
type Output = MessageType
Type of the data that will be deserialized.
Source§fn deserialize(buffer: &mut impl Buf) -> Result<Self::Output, DeserializeError>
fn deserialize(buffer: &mut impl Buf) -> Result<Self::Output, DeserializeError>
Deserializes an instance of
Deserialize::Output from the buffer. Read moreSource§fn deserialize_len(
length: LengthField,
buffer: &mut impl Buf,
) -> Result<Self::Output, DeserializeError>
fn deserialize_len( length: LengthField, buffer: &mut impl Buf, ) -> Result<Self::Output, DeserializeError>
Deserializes an instance of
Deserialize::Output from the buffer. Read moreSource§impl Display for MessageType
impl Display for MessageType
Source§impl From<MessageType> for u8
impl From<MessageType> for u8
Source§fn from(value: MessageType) -> Self
fn from(value: MessageType) -> Self
Converts to this type from the input type.
Source§impl From<u8> for MessageType
impl From<u8> for MessageType
Source§impl PartialEq for MessageType
impl PartialEq for MessageType
Source§impl Serialize for MessageType
impl Serialize for MessageType
Source§fn serialize(&self, buffer: &mut impl BufMut) -> Result<usize, SerializeError>
fn serialize(&self, buffer: &mut impl BufMut) -> Result<usize, SerializeError>
Serializes the implementing type into the buffer. Read more
Source§fn serialize_len(
&self,
length: LengthField,
buffer: &mut impl BufMut,
) -> Result<usize, SerializeError>
fn serialize_len( &self, length: LengthField, buffer: &mut impl BufMut, ) -> Result<usize, SerializeError>
Serializes the implementing type into the buffer. Read more
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 UnsafeUnpin for MessageType
impl UnwindSafe for MessageType
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