Enum roughenough::Error
[−]
[src]
pub enum Error { TagNotStrictlyIncreasing(Tag), InvalidTag(Box<[u8]>), InvalidNumTags(u32), InvalidValueLength(Tag, u32), EncodingFailure(Error), RequestTooShort, InvalidAlignment(u32), InvalidOffsetValue(u32), MessageTooShort, InvalidRequest, }
Error types generated by this implementation
Variants
TagNotStrictlyIncreasing(Tag)
The associated tag was added to an RtMessage
in non-increasing order.
InvalidTag(Box<[u8]>)
The associated byte sequence does not correspond to a valid Roughtime tag.
InvalidNumTags(u32)
Invalid number of tags specified
InvalidValueLength(Tag, u32)
Tag value length exceeds length of source bytes
EncodingFailure(Error)
Encoding failed. The associated std::io::Error
should provide more information.
RequestTooShort
Request was less than 1024 bytes
InvalidAlignment(u32)
Offset was not 32-bit aligned
InvalidOffsetValue(u32)
Offset is outside of valid message range
MessageTooShort
Could not convert bytes to message because bytes were too short
InvalidRequest
Otherwise invalid request
Trait Implementations
impl Debug for Error
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more