[][src]Enum roughenough::Error

pub enum Error {
    TagNotStrictlyIncreasing(Tag),
    InvalidTag(Box<[u8]>),
    InvalidNumTags(u32),
    InvalidValueLength(Tagu32),
    EncodingFailure(Error),
    RequestTooShort,
    InvalidAlignment(u32),
    InvalidOffsetValue(u32),
    MessageTooShort,
    InvalidRequest,
    InvalidConfiguration(String),
}

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(Tagu32)

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

InvalidConfiguration(String)

Runtime configuration is invalid for the reason provided

Trait Implementations

impl Debug for Error[src]

impl From<Error> for Error[src]

impl From<KmsError> for Error[src]

Auto Trait Implementations

impl !RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl !UnwindSafe for Error

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.