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