Enum taple_core::Notification
source · pub enum Notification {
NewSubject {
subject_id: String,
},
NewEvent {
sn: u64,
subject_id: String,
},
StateUpdated {
sn: u64,
subject_id: String,
},
ApprovalReceived {
id: String,
subject_id: String,
sn: u64,
},
ObsoletedApproval {
id: String,
subject_id: String,
sn: u64,
},
}
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
StateUpdated
A subject has been synchronized
ApprovalReceived
An approval request has been received
ObsoletedApproval
Approval Obsoleted because gov version changed or event confirmed without us
Trait Implementations§
source§impl Clone for Notification
impl Clone for Notification
source§fn clone(&self) -> Notification
fn clone(&self) -> Notification
Returns a copy of the value. Read more
1.0.0 · source§fn 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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more