Enum core::Notification
[−]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
A new subject has been generated
NewEvent
A new event has been generated
SubjectSynchronized
A subject has been synchronized
QuroumReached
An event has reached validation quorum
EventSigned
An event has been signed
RequestReached
A new requesst has been detected
RequestNegativeQuroumReached
An event request has been rejected by the approvers
RequestQuroumReached
An event request has been accepted by the approvers
Implementations
impl Notification
impl Notification
pub fn to_message(self) -> String
Trait Implementations
impl Clone for Notification
impl Clone for Notification
fn clone(&self) -> Notification
fn clone(&self) -> Notification
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for Notification
impl Send for Notification
impl Sync for Notification
impl Unpin for Notification
impl UnwindSafe for Notification
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more