pub struct AcceptStream<T>(/* private fields */);Expand description
A wrapper around a Stream of connections
Trait Implementations§
Source§impl<T, C, O, I> Accept for &AcceptStream<T>
impl<T, C, O, I> Accept for &AcceptStream<T>
Source§async fn accept(
&self,
) -> Result<(<&AcceptStream<T> as Accept>::Context, <&AcceptStream<T> as Accept>::Outgoing, <&AcceptStream<T> as Accept>::Incoming), Error>
async fn accept( &self, ) -> Result<(<&AcceptStream<T> as Accept>::Context, <&AcceptStream<T> as Accept>::Outgoing, <&AcceptStream<T> as Accept>::Incoming), Error>
Accept a connection returning a pair of streams and connection context
Source§impl<T, C, O, I> Accept for AcceptStream<T>
impl<T, C, O, I> Accept for AcceptStream<T>
Source§async fn accept(
&self,
) -> Result<(<AcceptStream<T> as Accept>::Context, <AcceptStream<T> as Accept>::Outgoing, <AcceptStream<T> as Accept>::Incoming), Error>
async fn accept( &self, ) -> Result<(<AcceptStream<T> as Accept>::Context, <AcceptStream<T> as Accept>::Outgoing, <AcceptStream<T> as Accept>::Incoming), Error>
Accept a connection returning a pair of streams and connection context
Source§impl<T> From<T> for AcceptStream<T>
impl<T> From<T> for AcceptStream<T>
Source§fn from(stream: T) -> AcceptStream<T>
fn from(stream: T) -> AcceptStream<T>
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> !Freeze for AcceptStream<T>
impl<T> !RefUnwindSafe for AcceptStream<T>
impl<T> Send for AcceptStream<T>where
T: Send,
impl<T> Sync for AcceptStream<T>where
T: Send,
impl<T> Unpin for AcceptStream<T>where
T: Unpin,
impl<T> UnwindSafe for AcceptStream<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> AcceptExt for Twhere
T: Accept,
impl<T> AcceptExt for Twhere
T: Accept,
Source§fn map_context<T, F>(self, f: F) -> AcceptMapContext<Self, F>
fn map_context<T, F>(self, f: F) -> AcceptMapContext<Self, F>
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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.Source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
Set the “status” flags for the
self file descriptor. Read moreSource§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more