pub struct IpcConnect<T> { /* private fields */ }
Available on crate feature
ipc
only.Expand description
An IPC Connection object.
Implementations§
source§impl<T> IpcConnect<T>
impl<T> IpcConnect<T>
sourcepub const fn new(inner: T) -> IpcConnect<T>where
IpcConnect<T>: PubSubConnect,
pub const fn new(inner: T) -> IpcConnect<T>where
IpcConnect<T>: PubSubConnect,
Create a new IPC connection object for any type T that can be converted into
IpcConnect<T>
.
Trait Implementations§
source§impl<T> Clone for IpcConnect<T>where
T: Clone,
impl<T> Clone for IpcConnect<T>where
T: Clone,
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 for IpcConnect<T>where
T: Debug,
impl<T> Debug for IpcConnect<T>where
T: Debug,
source§impl PubSubConnect for IpcConnect<CString>
impl PubSubConnect for IpcConnect<CString>
source§async fn connect(
&self,
) -> Result<ConnectionHandle, RpcError<TransportErrorKind>>
async fn connect( &self, ) -> Result<ConnectionHandle, RpcError<TransportErrorKind>>
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, RpcError<TransportErrorKind>>
async fn connect( &self, ) -> Result<ConnectionHandle, RpcError<TransportErrorKind>>
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, RpcError<TransportErrorKind>>
async fn connect( &self, ) -> Result<ConnectionHandle, RpcError<TransportErrorKind>>
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, RpcError<TransportErrorKind>>
async fn connect( &self, ) -> Result<ConnectionHandle, RpcError<TransportErrorKind>>
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
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more