pub struct ProtocolConnector<D: Borrow<DirectoryProxy>, P: DiscoverableProtocolMarker> { /* private fields */ }
Expand description
A protocol connection request that allows checking if the protocol exists.
Implementations§
Source§impl<D: Borrow<DirectoryProxy>, P: DiscoverableProtocolMarker> ProtocolConnector<D, P>
impl<D: Borrow<DirectoryProxy>, P: DiscoverableProtocolMarker> ProtocolConnector<D, P>
Sourcepub async fn exists(&self) -> Result<bool, Error>
pub async fn exists(&self) -> Result<bool, Error>
Returns true
if the protocol exists in the service directory.
This method requires a round trip to the service directory to check for existence.
Auto Trait Implementations§
impl<D, P> Freeze for ProtocolConnector<D, P>where
D: Freeze,
impl<D, P> RefUnwindSafe for ProtocolConnector<D, P>where
D: RefUnwindSafe,
P: RefUnwindSafe,
impl<D, P> Send for ProtocolConnector<D, P>where
D: Send,
impl<D, P> Sync for ProtocolConnector<D, P>where
D: Sync,
impl<D, P> Unpin for ProtocolConnector<D, P>
impl<D, P> UnwindSafe for ProtocolConnector<D, P>where
D: UnwindSafe,
P: 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