pub struct LogEntry<T: LogData> {
pub term: Term,
pub data: Option<T>,
pub config_change: Option<UpdateClusterVec>,
pub rule: Option<Rule>,
}
Fields§
§term: Term
§data: Option<T>
§config_change: Option<UpdateClusterVec>
§rule: Option<Rule>
Implementations§
source§impl<T: LogData> LogEntry<T>
impl<T: LogData> LogEntry<T>
pub fn new( term: Term, data: Option<T>, config_change: Option<UpdateClusterVec>, rule: Option<Rule> ) -> Self
pub fn with_data(term: Term, data: Option<T>) -> Self
pub fn with_rule(term: Term, rule: Rule) -> Self
pub fn with_config(term: Term, config_change: Option<UpdateClusterVec>) -> Self
Trait Implementations§
source§impl<'de, T> Deserialize<'de> for LogEntry<T>where
T: Deserialize<'de> + LogData,
impl<'de, T> Deserialize<'de> for LogEntry<T>where
T: Deserialize<'de> + LogData,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<T: PartialEq + LogData> PartialEq for LogEntry<T>
impl<T: PartialEq + LogData> PartialEq for LogEntry<T>
impl<T: Eq + LogData> Eq for LogEntry<T>
impl<T: LogData> StructuralPartialEq for LogEntry<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for LogEntry<T>where
T: RefUnwindSafe,
impl<T> Send for LogEntry<T>where
T: Send,
impl<T> Sync for LogEntry<T>where
T: Sync,
impl<T> Unpin for LogEntry<T>where
T: Unpin,
impl<T> UnwindSafe for LogEntry<T>where
T: UnwindSafe,
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