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>, 

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>>

Loading content...

Implementors

impl<O> SocketAddressEnumeratorExt for O where
    O: IsA<SocketAddressEnumerator>, 

Loading content...