Enum async_codec::EncodeResult [−][src]
Expand description
The result of an Encode::encode
call
Variants
Ok(usize)
Tuple Fields
0: usize
Item was successfully encoded and took usize
bytes of the provided
buffer.
Err(E)
There was an error encoding the item.
Overflow(usize)
Tuple Fields
0: usize
The encoded item would overflow the buffer.
May contain the needed buffer size to successfully hold the encoded
item. The value 0
indicates that the needed buffer size is
unknown.