pub trait SocketAddressEnumeratorExt: 'static {
// Required methods
fn next<P: IsA<Cancellable>>(
&self,
cancellable: Option<&P>,
) -> Result<SocketAddress, Error>;
fn next_async<P: IsA<Cancellable>, Q: FnOnce(Result<SocketAddress, Error>) + Send + 'static>(
&self,
cancellable: Option<&P>,
callback: Q,
);
}
Required Methods§
fn next<P: IsA<Cancellable>>( &self, cancellable: Option<&P>, ) -> Result<SocketAddress, Error>
fn next_async<P: IsA<Cancellable>, Q: FnOnce(Result<SocketAddress, Error>) + Send + 'static>( &self, cancellable: Option<&P>, callback: Q, )
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.