[][src]Struct xio_common::Connection

pub struct Connection { /* fields omitted */ }

Methods

impl Connection[src]

pub fn new_with_identifier(port: &str, identifier: &str) -> Result<Self>[src]

Create a Connection, and give it an identifier.

The identifier gets inserted in the thread name, helping to identify threads when debugging.

The resulting thread name is something like "xio_tx:" or "xio_rx:".

pub fn new(port: &str) -> Result<Self>[src]

pub fn get_notifications_receiver(
    &mut self
) -> Result<Receiver<NotificationItem>>
[src]

pub fn get_stale_connection_receiver(&mut self) -> Result<Receiver<()>>[src]

Trait Implementations

impl SendAndReceive<Vec<Request>, Vec<Response>> for Connection[src]

type Error = Error

impl SendAndReceive<Request, Response> for Connection[src]

type Error = Error

impl<Q, S> SendAndReceive<Q, S> for Connection where
    Q: Into<Request> + IsRequest<Response = S>,
    S: TryFromResponse + IsResponse<Request = Q>, 
[src]

type Error = Error

impl Clone for Connection[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for 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.

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

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

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

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

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