Enum ssb_validate::error::Error[][src]

pub enum Error {
    InvalidPreviousMessage {
        source: DecodeJsonError,
        message: Vec<u8>,
    },
    InvalidMessage {
        source: DecodeJsonError,
        message: Vec<u8>,
    },
    InvalidMessageValueOrder {
        message: Vec<u8>,
    },
    AuthorsDidNotMatch {
        previous_author: String,
        author: String,
    },
    FirstMessageDidNotHaveSequenceOfOne {
        message: Vec<u8>,
    },
    FirstMessageDidNotHavePreviousOfNull {
        message: Vec<u8>,
    },
    InvalidHashFunction {
        message: Vec<u8>,
    },
    InvalidBase64 {
        message: Vec<u8>,
    },
    InvalidMessageValueLength {
        message: Vec<u8>,
    },
    InvalidSequenceNumber {
        message: Vec<u8>,
        actual: u64,
        expected: u64,
    },
    InvalidMessageNoValue,
    InvalidMessageCouldNotSerializeValue {
        source: EncodeJsonError,
    },
    ActualHashDidNotMatchKey {
        message: Vec<u8>,
        actual_hash: Multihash,
        expected_hash: Multihash,
    },
    PreviousWasNull,
    ForkedFeed {
        previous_seq: u64,
    },
}

Variants

InvalidPreviousMessage

Fields of InvalidPreviousMessage

source: DecodeJsonErrormessage: Vec<u8>
InvalidMessage

Fields of InvalidMessage

source: DecodeJsonErrormessage: Vec<u8>
InvalidMessageValueOrder

Fields of InvalidMessageValueOrder

message: Vec<u8>
AuthorsDidNotMatch

Fields of AuthorsDidNotMatch

previous_author: Stringauthor: String
FirstMessageDidNotHaveSequenceOfOne

Fields of FirstMessageDidNotHaveSequenceOfOne

message: Vec<u8>
FirstMessageDidNotHavePreviousOfNull

Fields of FirstMessageDidNotHavePreviousOfNull

message: Vec<u8>
InvalidHashFunction

Fields of InvalidHashFunction

message: Vec<u8>
InvalidBase64

Fields of InvalidBase64

message: Vec<u8>
InvalidMessageValueLength

Fields of InvalidMessageValueLength

message: Vec<u8>
InvalidSequenceNumber

Fields of InvalidSequenceNumber

message: Vec<u8>actual: u64expected: u64
InvalidMessageNoValue
InvalidMessageCouldNotSerializeValue

Fields of InvalidMessageCouldNotSerializeValue

source: EncodeJsonError
ActualHashDidNotMatchKey

Fields of ActualHashDidNotMatchKey

message: Vec<u8>actual_hash: Multihashexpected_hash: Multihash
PreviousWasNull
ForkedFeed

Fields of ForkedFeed

previous_seq: u64

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error where
    Self: Debug + Display
[src]

impl ErrorCompat 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> AsErrorSource for T where
    T: 'static + Error

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> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,