pub struct UdsSocket { /* private fields */ }Implementations§
Source§impl UdsSocket
impl UdsSocket
pub fn new( ifname: &str, src: impl Into<Id>, dst: impl Into<Id>, ) -> Result<UdsSocket, UdsCommunicationError>
pub fn new_with_opts( ifname: &str, src: impl Into<Id>, dst: impl Into<Id>, isotp_options: Option<IsoTpOptions>, rx_flow_control_options: Option<FlowControlOptions>, link_layer_options: Option<LinkLayerOptions>, ) -> Result<UdsSocket, UdsCommunicationError>
pub async fn send(&self, payload: &[u8]) -> Result<(), UdsCommunicationError>
pub async fn receive(&self) -> Result<Vec<u8>, UdsCommunicationError>
Auto Trait Implementations§
impl Freeze for UdsSocket
impl !RefUnwindSafe for UdsSocket
impl Send for UdsSocket
impl Sync for UdsSocket
impl Unpin for UdsSocket
impl !UnwindSafe for UdsSocket
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