Struct xio_common::Connection [−][src]
pub struct Connection { /* fields omitted */ }
Methods
impl Connection
[src]
impl Connection
pub fn new_with_identifier(port: &str, identifier: &str) -> Result<Self>
[src]
pub fn new_with_identifier(port: &str, identifier: &str) -> Result<Self>
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:
pub fn new(port: &str) -> Result<Self>
[src]
pub fn new(port: &str) -> Result<Self>
pub fn add_response_rx(&mut self) -> RxHandle<ResponseItem>
[src]
pub fn add_response_rx(&mut self) -> RxHandle<ResponseItem>
pub fn add_notification_rx(&mut self) -> RxHandle<NotificationItem>
[src]
pub fn add_notification_rx(&mut self) -> RxHandle<NotificationItem>
pub fn get_handle(&mut self) -> Result<Handle>
[src]
pub fn get_handle(&mut self) -> Result<Handle>
Trait Implementations
impl Drop for Connection
[src]
impl Drop for Connection
Auto Trait Implementations
impl Send for Connection
impl Send for Connection
impl !Sync for Connection
impl !Sync for Connection