pub struct KernelUdsDemux { /* private fields */ }Expand description
Kernel-backed ISO-TP demux for UDS normal-fixed addressing (0x18DA_TA_SA).
Implementations§
Source§impl KernelUdsDemux
impl KernelUdsDemux
Sourcepub fn new(
iface: impl Into<String>,
local_addr: u8,
options: IsoTpKernelOptions,
) -> Self
pub fn new( iface: impl Into<String>, local_addr: u8, options: IsoTpKernelOptions, ) -> Self
Create a demux for local_addr on iface using the provided kernel options.
Sourcepub fn local_addr(&self) -> u8
pub fn local_addr(&self) -> u8
UDS local address (target address).
Trait Implementations§
Source§impl Debug for KernelUdsDemux
impl Debug for KernelUdsDemux
Source§impl IsoTpEndpoint for KernelUdsDemux
impl IsoTpEndpoint for KernelUdsDemux
Source§fn send_to(
&mut self,
to: u8,
payload: &[u8],
timeout: Duration,
) -> Result<(), SendError<Self::Error>>
fn send_to( &mut self, to: u8, payload: &[u8], timeout: Duration, ) -> Result<(), SendError<Self::Error>>
Send a payload to a specific peer address.
Auto Trait Implementations§
impl Freeze for KernelUdsDemux
impl RefUnwindSafe for KernelUdsDemux
impl Send for KernelUdsDemux
impl Sync for KernelUdsDemux
impl Unpin for KernelUdsDemux
impl UnsafeUnpin for KernelUdsDemux
impl UnwindSafe for KernelUdsDemux
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more