Struct arta_async_std::net::AsyncStdTcpListener
source · pub struct AsyncStdTcpListener { /* private fields */ }
Expand description
Async-std specific RuntimeTcpListener
implementation.
Trait Implementations§
source§impl AsFd for AsyncStdTcpListener
impl AsFd for AsyncStdTcpListener
source§fn as_fd(&self) -> BorrowedFd<'_>
fn as_fd(&self) -> BorrowedFd<'_>
Borrows the file descriptor. Read more
source§impl AsRawFd for AsyncStdTcpListener
impl AsRawFd for AsyncStdTcpListener
source§impl From<OwnedFd> for AsyncStdTcpListener
impl From<OwnedFd> for AsyncStdTcpListener
source§impl RuntimeTcpListener for AsyncStdTcpListener
impl RuntimeTcpListener for AsyncStdTcpListener
§type Runtime = AsyncStdGlobalRuntime
type Runtime = AsyncStdGlobalRuntime
An async runtime.
source§fn accept(
&self,
) -> impl Future<Output = Result<(<Self::Runtime as NetRuntime>::TcpStream, SocketAddr)>> + Send
fn accept( &self, ) -> impl Future<Output = Result<(<Self::Runtime as NetRuntime>::TcpStream, SocketAddr)>> + Send
Accept a new incoming connection from this listener. Read more
source§fn bind(
runtime: &Self::Runtime,
addr: impl ToSocketAddrs<Self::Runtime>,
) -> impl Future<Output = Result<Self>> + Sendwhere
Self: Sized,
fn bind(
runtime: &Self::Runtime,
addr: impl ToSocketAddrs<Self::Runtime>,
) -> impl Future<Output = Result<Self>> + Sendwhere
Self: Sized,
Creates a new
TcpListener
which will be bound to the specified address. Read moresource§fn local_addr(&self) -> Result<SocketAddr>
fn local_addr(&self) -> Result<SocketAddr>
Returns the local socket address of this listener.
Auto Trait Implementations§
impl Freeze for AsyncStdTcpListener
impl RefUnwindSafe for AsyncStdTcpListener
impl Send for AsyncStdTcpListener
impl Sync for AsyncStdTcpListener
impl Unpin for AsyncStdTcpListener
impl UnwindSafe for AsyncStdTcpListener
Blanket Implementations§
source§impl<T> AsFilelike for Twhere
T: AsFd,
impl<T> AsFilelike for Twhere
T: AsFd,
source§fn as_filelike(&self) -> BorrowedFd<'_>
fn as_filelike(&self) -> BorrowedFd<'_>
Borrows the reference. Read more
source§fn as_filelike_view<Target>(&self) -> FilelikeView<'_, Target>where
Target: FilelikeViewType,
fn as_filelike_view<Target>(&self) -> FilelikeView<'_, Target>where
Target: FilelikeViewType,
Return a borrowing view of a resource which dereferences to a
&Target
. Read moresource§impl<T> AsRawFilelike for Twhere
T: AsRawFd,
impl<T> AsRawFilelike for Twhere
T: AsRawFd,
source§fn as_raw_filelike(&self) -> i32
fn as_raw_filelike(&self) -> i32
Returns the raw value.
source§impl<T> AsRawSocketlike for Twhere
T: AsRawFd,
impl<T> AsRawSocketlike for Twhere
T: AsRawFd,
source§fn as_raw_socketlike(&self) -> i32
fn as_raw_socketlike(&self) -> i32
Returns the raw value.
source§impl<T> AsSocketlike for Twhere
T: AsFd,
impl<T> AsSocketlike for Twhere
T: AsFd,
source§fn as_socketlike(&self) -> BorrowedFd<'_>
fn as_socketlike(&self) -> BorrowedFd<'_>
Borrows the reference.
source§fn as_socketlike_view<Target>(&self) -> SocketlikeView<'_, Target>where
Target: SocketlikeViewType,
fn as_socketlike_view<Target>(&self) -> SocketlikeView<'_, Target>where
Target: SocketlikeViewType,
Return a borrowing view of a resource which dereferences to a
&Target
. Read moresource§impl<T> AsSource for Twhere
T: AsFd,
impl<T> AsSource for Twhere
T: AsFd,
source§fn source(&self) -> BorrowedFd<'_>
fn source(&self) -> BorrowedFd<'_>
Returns the borrowed file descriptor.
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> FromFd for T
impl<T> FromFd for T
source§impl<T> FromFilelike for T
impl<T> FromFilelike for T
source§fn from_filelike(owned: OwnedFd) -> T
fn from_filelike(owned: OwnedFd) -> T
Constructs a new instance of
Self
from the given filelike object. Read moresource§fn from_into_filelike<Owned>(owned: Owned) -> Twhere
Owned: IntoFilelike,
fn from_into_filelike<Owned>(owned: Owned) -> Twhere
Owned: IntoFilelike,
Constructs a new instance of
Self
from the given filelike object
converted from into_owned
. Read moresource§impl<T> FromSocketlike for T
impl<T> FromSocketlike for T
source§fn from_socketlike(owned: OwnedFd) -> T
fn from_socketlike(owned: OwnedFd) -> T
Constructs a new instance of
Self
from the given socketlike object.source§fn from_into_socketlike<Owned>(owned: Owned) -> Twhere
Owned: IntoSocketlike,
fn from_into_socketlike<Owned>(owned: Owned) -> Twhere
Owned: IntoSocketlike,
Constructs a new instance of
Self
from the given socketlike object
converted from into_owned
.