pub struct ServiceReconnector<P>{ /* private fields */ }
Expand description
A Connect
implementation that will try to reconnect to a FIDL service if the channel has
received a peer closed signal. This means it is possible ServiceReconnector
to return a
closed channel, but it should eventually reconnect once the FIDL service is restarted.
Implementations§
Source§impl<P> ServiceReconnector<P>
impl<P> ServiceReconnector<P>
Sourcepub fn new() -> Self
pub fn new() -> Self
Return a FIDL service connector at the default service directory in the application’s root namespace.
Sourcepub fn with_service_at(service_directory_path: &str) -> Self
pub fn with_service_at(service_directory_path: &str) -> Self
Return a FIDL service connector at the specified service directory in the application’s root namespace.
The service directory path must be an absolute path.
Sourcepub fn with_service_at_path<S: Into<String>>(service_path: S) -> Self
pub fn with_service_at_path<S: Into<String>>(service_path: S) -> Self
Return a FIDL service connector at the specified service path.
Trait Implementations§
Source§impl<P> Clone for ServiceReconnector<P>
impl<P> Clone for ServiceReconnector<P>
Source§fn clone(&self) -> ServiceReconnector<P>
fn clone(&self) -> ServiceReconnector<P>
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<P> Connect for ServiceReconnector<P>
impl<P> Connect for ServiceReconnector<P>
Auto Trait Implementations§
impl<P> Freeze for ServiceReconnector<P>
impl<P> !RefUnwindSafe for ServiceReconnector<P>
impl<P> Send for ServiceReconnector<P>
impl<P> Sync for ServiceReconnector<P>
impl<P> Unpin for ServiceReconnector<P>
impl<P> !UnwindSafe for ServiceReconnector<P>
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
)