StreamResult

Either a number of items that have been read or written, or a stream error, as a common result type for many stream operations.

As an instance of Either, it offers the following methods: - result.hasError to check if the result has an error. - result.hasCount to check if the result has an element count. - result.error to get the StreamError instance, if result.hasError returns true. - result.count to get the number of elements read or written, if result.hasCount returns true.

alias StreamResult = Either!(uint, "count", StreamError, "error")

Meta