Struct xio_common::Connection
source · pub struct Connection { /* private fields */ }
Implementations
sourceimpl Connection
impl Connection
sourcepub fn new_with_identifier(port: &str, identifier: &str) -> Result<Self>
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>
pub fn get_notifications_receiver(
&mut self
) -> Result<Receiver<NotificationItem>>
Trait Implementations
sourceimpl Clone for Connection
impl Clone for Connection
sourcefn clone(&self) -> Connection
fn clone(&self) -> Connection
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<Q, S> SendAndReceive<Q, S> for Connectionwhere
Q: Into<Request> + IsRequest<Response = S>,
S: TryFromResponse + IsResponse<Request = Q>,
impl<Q, S> SendAndReceive<Q, S> for Connectionwhere
Q: Into<Request> + IsRequest<Response = S>,
S: TryFromResponse + IsResponse<Request = Q>,
type Error = Error
fn send_and_receive(&mut self, request: Q) -> Result<S>
sourceimpl SendAndReceive<Request, Response> for Connection
impl SendAndReceive<Request, Response> for Connection
Auto Trait Implementations
impl RefUnwindSafe for Connection
impl !Send for Connection
impl !Sync for Connection
impl Unpin for Connection
impl UnwindSafe for Connection
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more