Expand description
Finite state machine for get responses.
This is the low level API for getting data from a peer.
Structs§
- AtBlob
Content - State while we are reading content
- AtBlob
Header - State before reading a size header
- AtClosing
- State when finishing the get response
- AtConnected
- State of the get response machine after the handshake has been sent
- AtEnd
Blob - State after we have read all the content for a blob
- AtInitial
- Initial state of the get response machine
- AtStart
Child - State of the get response when we start reading a child
- AtStart
Root - State of the get response when we start reading a collection
Enums§
- AtBlob
Header Next Error - Error that you can get from
AtBlobHeader::next
- Blob
Content Next - The next state after reading a content item
- Connected
Next - Possible next states after the handshake has been sent
- Connected
Next Error - Error that you can get from
AtConnected::next
- Decode
Error - Decode error that you can get once you have sent the request and are
decoding the response, e.g. from
AtBlobContent::next
. - EndBlob
Next - The next state after the end of a blob
Functions§
- start
- The entry point of the get response machine