pub struct Connection<T> { /* private fields */ }Implementations§
Source§impl<T> Connection<T>
impl<T> Connection<T>
pub fn new(socket: T, config: Config, endpoint: Endpoint) -> Connection<T>
pub fn poll_new_outbound( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<Stream, ConnectionError>>
pub fn poll_next_inbound( &mut self, cx: &mut Context<'_>, ) -> Poll<Option<Result<Stream, ConnectionError>>>
pub fn poll_close( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), ConnectionError>>
Trait Implementations§
Source§impl<T> Debug for Connection<T>where
T: Debug,
impl<T> Debug for Connection<T>where
T: Debug,
Source§impl<T> Drop for Connection<T>
impl<T> Drop for Connection<T>
Auto Trait Implementations§
impl<T> !Freeze for Connection<T>
impl<T> !RefUnwindSafe for Connection<T>
impl<T> !UnwindSafe for Connection<T>
impl<T> Send for Connection<T>where
T: Send,
impl<T> Sync for Connection<T>where
T: Sync,
impl<T> Unpin for Connection<T>where
T: Unpin,
impl<T> UnsafeUnpin for Connection<T>where
T: UnsafeUnpin,
Blanket Implementations§
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§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