pub struct IpcConnect<T> { /* private fields */ }
Expand description
An IPC Connection object.
Implementations§
source§impl<T> IpcConnect<T>
impl<T> IpcConnect<T>
sourcepub const fn new(inner: T) -> Selfwhere
Self: PubSubConnect,
pub const fn new(inner: T) -> Selfwhere
Self: PubSubConnect,
Create a new IPC connection object for any type T that can be converted into
IpcConnect<T>
.
Trait Implementations§
source§impl<T: Clone> Clone for IpcConnect<T>
impl<T: Clone> Clone for IpcConnect<T>
source§fn clone(&self) -> IpcConnect<T>
fn clone(&self) -> IpcConnect<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug> Debug for IpcConnect<T>
impl<T: Debug> Debug for IpcConnect<T>
source§impl PubSubConnect for IpcConnect<CString>
impl PubSubConnect for IpcConnect<CString>
source§async fn connect(&self) -> Result<ConnectionHandle, TransportError>
async fn connect(&self) -> Result<ConnectionHandle, TransportError>
Spawn the backend, returning a handle to it. Read more
source§fn try_reconnect(
&self,
) -> impl Send + Future<Output = Result<ConnectionHandle, RpcError<TransportErrorKind>>>
fn try_reconnect( &self, ) -> impl Send + Future<Output = Result<ConnectionHandle, RpcError<TransportErrorKind>>>
Attempt to reconnect the transport. Read more
source§fn into_service(
self,
) -> impl Send + Future<Output = Result<PubSubFrontend, RpcError<TransportErrorKind>>>
fn into_service( self, ) -> impl Send + Future<Output = Result<PubSubFrontend, RpcError<TransportErrorKind>>>
Convert the configuration object into a service with a running backend.
source§impl PubSubConnect for IpcConnect<OsString>
impl PubSubConnect for IpcConnect<OsString>
source§async fn connect(&self) -> Result<ConnectionHandle, TransportError>
async fn connect(&self) -> Result<ConnectionHandle, TransportError>
Spawn the backend, returning a handle to it. Read more
source§fn try_reconnect(
&self,
) -> impl Send + Future<Output = Result<ConnectionHandle, RpcError<TransportErrorKind>>>
fn try_reconnect( &self, ) -> impl Send + Future<Output = Result<ConnectionHandle, RpcError<TransportErrorKind>>>
Attempt to reconnect the transport. Read more
source§fn into_service(
self,
) -> impl Send + Future<Output = Result<PubSubFrontend, RpcError<TransportErrorKind>>>
fn into_service( self, ) -> impl Send + Future<Output = Result<PubSubFrontend, RpcError<TransportErrorKind>>>
Convert the configuration object into a service with a running backend.
source§impl PubSubConnect for IpcConnect<PathBuf>
impl PubSubConnect for IpcConnect<PathBuf>
source§async fn connect(&self) -> Result<ConnectionHandle, TransportError>
async fn connect(&self) -> Result<ConnectionHandle, TransportError>
Spawn the backend, returning a handle to it. Read more
source§fn try_reconnect(
&self,
) -> impl Send + Future<Output = Result<ConnectionHandle, RpcError<TransportErrorKind>>>
fn try_reconnect( &self, ) -> impl Send + Future<Output = Result<ConnectionHandle, RpcError<TransportErrorKind>>>
Attempt to reconnect the transport. Read more
source§fn into_service(
self,
) -> impl Send + Future<Output = Result<PubSubFrontend, RpcError<TransportErrorKind>>>
fn into_service( self, ) -> impl Send + Future<Output = Result<PubSubFrontend, RpcError<TransportErrorKind>>>
Convert the configuration object into a service with a running backend.
source§impl PubSubConnect for IpcConnect<String>
impl PubSubConnect for IpcConnect<String>
source§async fn connect(&self) -> Result<ConnectionHandle, TransportError>
async fn connect(&self) -> Result<ConnectionHandle, TransportError>
Spawn the backend, returning a handle to it. Read more
source§fn try_reconnect(
&self,
) -> impl Send + Future<Output = Result<ConnectionHandle, RpcError<TransportErrorKind>>>
fn try_reconnect( &self, ) -> impl Send + Future<Output = Result<ConnectionHandle, RpcError<TransportErrorKind>>>
Attempt to reconnect the transport. Read more
source§fn into_service(
self,
) -> impl Send + Future<Output = Result<PubSubFrontend, RpcError<TransportErrorKind>>>
fn into_service( self, ) -> impl Send + Future<Output = Result<PubSubFrontend, RpcError<TransportErrorKind>>>
Convert the configuration object into a service with a running backend.
Auto Trait Implementations§
impl<T> Freeze for IpcConnect<T>where
T: Freeze,
impl<T> RefUnwindSafe for IpcConnect<T>where
T: RefUnwindSafe,
impl<T> Send for IpcConnect<T>where
T: Send,
impl<T> Sync for IpcConnect<T>where
T: Sync,
impl<T> Unpin for IpcConnect<T>where
T: Unpin,
impl<T> UnwindSafe for IpcConnect<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)