[−][src]Struct eventum::uds_server::UdsServerEntry
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
impl !RefUnwindSafe for UdsServerEntry
impl Unpin for UdsServerEntry
impl !UnwindSafe for UdsServerEntry
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,