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> 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