pub struct AtConnected<R: RecvStream = RecvStream, W: SendStream = SendStream> { /* private fields */ }Expand description
State of the get response machine after the handshake has been sent
Implementations§
Source§impl<R: RecvStream, W: SendStream> AtConnected<R, W>
impl<R: RecvStream, W: SendStream> AtConnected<R, W>
pub fn new( start: Instant, reader: R, writer: W, request: GetRequest, counters: RequestCounters, ) -> Self
Sourcepub async fn next(self) -> Result<ConnectedNext<R>, ConnectedNextError>
pub async fn next(self) -> Result<ConnectedNext<R>, ConnectedNextError>
Send the request and move to the next state
The next state will be either StartRoot or StartChild depending on whether
the request requests part of the collection or not.
If the request is empty, this can also move directly to Finished.
Trait Implementations§
Source§impl<R: Debug + RecvStream, W: Debug + SendStream> Debug for AtConnected<R, W>
impl<R: Debug + RecvStream, W: Debug + SendStream> Debug for AtConnected<R, W>
Auto Trait Implementations§
impl<R, W> Freeze for AtConnected<R, W>
impl<R, W> RefUnwindSafe for AtConnected<R, W>where
R: RefUnwindSafe,
W: RefUnwindSafe,
impl<R, W> Send for AtConnected<R, W>
impl<R, W> Sync for AtConnected<R, W>
impl<R, W> Unpin for AtConnected<R, W>
impl<R, W> UnsafeUnpin for AtConnected<R, W>where
R: UnsafeUnpin,
W: UnsafeUnpin,
impl<R, W> UnwindSafe for AtConnected<R, W>where
R: UnwindSafe,
W: UnwindSafe,
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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