Some of snapd's endpoints return streams. This might be a little tricky to implement, right now the Payload somewhat depends on not needing to know anything about its contents, and is designed to be one-off, but a stream is going to keep sending data until done. We'd have to either make a GetStream trait or modify Payload to accommodate a StreamingIterator type setup.
Some of
snapd's endpoints return streams. This might be a little tricky to implement, right now thePayloadsomewhat depends on not needing to know anything about its contents, and is designed to be one-off, but a stream is going to keep sending data until done. We'd have to either make aGetStreamtrait or modifyPayloadto accommodate aStreamingIteratortype setup.