Trait raftify::AbstractLogEntry
source · pub trait AbstractLogEntry: Clone + Send + Sync {
// Required methods
fn encode(&self) -> Result<Vec<u8>>;
fn decode(bytes: &[u8]) -> Result<Self>
where Self: Sized;
}Required Methods§
fn encode(&self) -> Result<Vec<u8>>
fn decode(bytes: &[u8]) -> Result<Self>where
Self: Sized,
Object Safety§
This trait is not object safe.