[][src]Struct eventum::uds_client::UdsClientInner

pub struct UdsClientInner { /* fields omitted */ }

UdsClient Inner.

Implementations

impl UdsClientInner[src]

UdsClientInner implementation.

pub fn new(
    client: Arc<Mutex<UdsClient>>,
    event_manager: Arc<Mutex<EventManager>>,
    handler: Arc<dyn UdsClientHandler>,
    path: &PathBuf
) -> UdsClientInner
[src]

Constructdor.

pub fn connect(&self, client: &UdsClient) -> Result<(), EventError>[src]

Connect to server.

pub fn get_event_manager(&self) -> Arc<Mutex<EventManager>>[src]

Return event manager.

pub fn stream_send(&self, message: &str) -> Result<(), EventError>[src]

Send a message through UnixStream.

pub fn stream_read(&self) -> Result<String, EventError>[src]

Receive a message through UnixStream. Return UTF8 string. If it is empty, consider an error.

Trait Implementations

impl Drop for UdsClientInner[src]

impl EventHandler for UdsClientInner[src]

EventHandler implementation for UdsClient.

fn handle(&self, e: EventType) -> Result<(), EventError>[src]

Handle event.

impl Send for UdsClientInner[src]

impl Sync for UdsClientInner[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.