pub struct ClientId { /* private fields */ }
Expand description
SOME/IP client ID.
Implementations§
Source§impl ClientId
impl ClientId
Sourcepub fn new(prefix: Prefix, id: ClientIdInner) -> ClientId
pub fn new(prefix: Prefix, id: ClientIdInner) -> ClientId
Creates a new client ID.
Sourcepub fn set_prefix(&mut self, prefix: Prefix)
pub fn set_prefix(&mut self, prefix: Prefix)
Sets the prefix.
Sourcepub fn id(&self) -> ClientIdInner
pub fn id(&self) -> ClientIdInner
Returns the ID.
Sourcepub fn set_id(&mut self, id: ClientIdInner)
pub fn set_id(&mut self, id: ClientIdInner)
Sets the ID.
Trait Implementations§
Source§impl<'a> Parse<'a> for ClientId
impl<'a> Parse<'a> for ClientId
Source§fn parse_partial(reader: &mut ByteReader<'a>) -> Result<ClientId, ParseError>
fn parse_partial(reader: &mut ByteReader<'a>) -> Result<ClientId, ParseError>
Parses a SOME/IP payload type from a given slice of bytes. Read more
Source§impl Serialize for ClientId
impl Serialize for ClientId
Source§fn required_length(&self) -> usize
fn required_length(&self) -> usize
Returns the number of bytes required to store the serialized version of self.
Source§fn serialize_partial(
&self,
writer: &mut ByteWriter<'_>,
) -> Result<(), SerializeError>
fn serialize_partial( &self, writer: &mut ByteWriter<'_>, ) -> Result<(), SerializeError>
Serializes to a byte writer.
impl Copy for ClientId
impl Eq for ClientId
impl StructuralPartialEq for ClientId
Auto Trait Implementations§
impl Freeze for ClientId
impl RefUnwindSafe for ClientId
impl Send for ClientId
impl Sync for ClientId
impl Unpin for ClientId
impl UnwindSafe for ClientId
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