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