[][src]Struct eventum::uds_server::UdsServerEntry

pub struct UdsServerEntry { /* fields omitted */ }

Unix Domain Socket server entry, created per connect.

Implementations

impl UdsServerEntry[src]

UdsServerEntry implementation.

pub fn new(server: Arc<UdsServer>, index: u32) -> UdsServerEntry[src]

Constructor.

pub fn index(&self) -> u32[src]

Return index.

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.

Trait Implementations

impl Drop for UdsServerEntry[src]

Drop implementation.

impl EventHandler for UdsServerEntry[src]

EventHandler implementation for UdsServerEntry.

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

Handle event.

fn set_token(&self, token: Token)[src]

Set token to entry.

fn get_token(&self) -> Token[src]

Get token from entry.

impl Send for UdsServerEntry[src]

impl Sync for UdsServerEntry[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.