pub struct UdsClient { /* private fields */ }Expand description
Unix Domain Socket client entry, created per connect.
Implementations§
Source§impl UdsClient
UdsClient implementation.
impl UdsClient
UdsClient implementation.
Sourcepub fn get_inner(&self) -> Arc<UdsClientInner>
pub fn get_inner(&self) -> Arc<UdsClientInner>
Return UdsClientInner.
Sourcepub fn start(
event_manager: Arc<Mutex<EventManager>>,
handler: Arc<dyn UdsClientHandler>,
path: &PathBuf,
) -> Arc<Mutex<UdsClient>>
pub fn start( event_manager: Arc<Mutex<EventManager>>, handler: Arc<dyn UdsClientHandler>, path: &PathBuf, ) -> Arc<Mutex<UdsClient>>
Start UdsClient.
Sourcepub fn connect_timer(&self)
pub fn connect_timer(&self)
Start connect timer.
Sourcepub fn stream_send(&self, message: &str) -> Result<(), EventError>
pub fn stream_send(&self, message: &str) -> Result<(), EventError>
Send message.
Sourcepub fn stream_read(&self) -> Result<String, EventError>
pub fn stream_read(&self) -> Result<String, EventError>
Receive message.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for UdsClient
impl !RefUnwindSafe for UdsClient
impl !Sync for UdsClient
impl !UnwindSafe for UdsClient
impl Send for UdsClient
impl Unpin for UdsClient
impl UnsafeUnpin for UdsClient
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