pub enum Notification {
    NewSubject {
        subject_id: String,
        default_message: String,
    },
    NewEvent {
        sn: u64,
        subject_id: String,
        default_message: String,
    },
    SubjectSynchronized {
        subject_id: String,
        default_message: String,
    },
    QuroumReached {
        sn: u64,
        subject_id: String,
        default_message: String,
    },
    EventSigned {
        sn: u64,
        subject_id: String,
        default_message: String,
    },
    RequestReached {
        request_id: String,
        subject_id: String,
        default_message: String,
    },
    RequestNegativeQuroumReached {
        request_id: String,
        subject_id: String,
        default_message: String,
    },
    RequestQuroumReached {
        request_id: String,
        subject_id: String,
        default_message: String,
    },
}
Expand description

Notifications generated by [NotificationHandler]. These notifications identify the type of message and its content. In addition, the message is accompanied by the data used to construct the message, so that it can be used to construct customized messages.

Variants

NewSubject

Fields

subject_id: String
default_message: String

A new subject has been generated

NewEvent

Fields

sn: u64
subject_id: String
default_message: String

A new event has been generated

SubjectSynchronized

Fields

subject_id: String
default_message: String

A subject has been synchronized

QuroumReached

Fields

sn: u64
subject_id: String
default_message: String

An event has reached validation quorum

EventSigned

Fields

sn: u64
subject_id: String
default_message: String

An event has been signed

RequestReached

Fields

request_id: String
subject_id: String
default_message: String

A new requesst has been detected

RequestNegativeQuroumReached

Fields

request_id: String
subject_id: String
default_message: String

An event request has been rejected by the approvers

RequestQuroumReached

Fields

request_id: String
subject_id: String
default_message: String

An event request has been accepted by the approvers

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more