Trait ux::prelude::SocketAddressEnumeratorExt [−]
pub trait SocketAddressEnumeratorExt: 'static {
pub fn next<P>(
&self,
cancellable: Option<&P>
) -> Result<SocketAddress, Error>
where
P: IsA<Cancellable>;
pub fn next_async<P, Q>(&self, cancellable: Option<&P>, callback: Q)
where
P: IsA<Cancellable>,
Q: 'static + FnOnce(Result<SocketAddress, Error>) + Send;
pub fn next_async_future(
&self
) -> Pin<Box<dyn Future<Output = Result<SocketAddress, Error>> + 'static, Global>>;
}Required methods
pub fn next<P>(&self, cancellable: Option<&P>) -> Result<SocketAddress, Error> where
P: IsA<Cancellable>,
P: IsA<Cancellable>,
pub fn next_async<P, Q>(&self, cancellable: Option<&P>, callback: Q) where
P: IsA<Cancellable>,
Q: 'static + FnOnce(Result<SocketAddress, Error>) + Send,
P: IsA<Cancellable>,
Q: 'static + FnOnce(Result<SocketAddress, Error>) + Send,
pub fn next_async_future(
&self
) -> Pin<Box<dyn Future<Output = Result<SocketAddress, Error>> + 'static, Global>>
&self
) -> Pin<Box<dyn Future<Output = Result<SocketAddress, Error>> + 'static, Global>>
Implementors
impl<O> SocketAddressEnumeratorExt for O where
O: IsA<SocketAddressEnumerator>,
O: IsA<SocketAddressEnumerator>,
pub fn next<P>(&self, cancellable: Option<&P>) -> Result<SocketAddress, Error> where
P: IsA<Cancellable>,
P: IsA<Cancellable>,
pub fn next_async<P, Q>(&self, cancellable: Option<&P>, callback: Q) where
P: IsA<Cancellable>,
Q: 'static + FnOnce(Result<SocketAddress, Error>) + Send,
P: IsA<Cancellable>,
Q: 'static + FnOnce(Result<SocketAddress, Error>) + Send,
pub fn next_async_future(
&self
) -> Pin<Box<dyn Future<Output = Result<SocketAddress, Error>> + 'static, Global>>
&self
) -> Pin<Box<dyn Future<Output = Result<SocketAddress, Error>> + 'static, Global>>