Trait cuprate_levin::LevinCommand
source · pub trait LevinCommand: From<u32> + Into<u32> + PartialEq + Clone {
// Required methods
fn bucket_size_limit(&self) -> u64;
fn is_handshake(&self) -> bool;
}Expand description
The levin commands.
Implementers should account for all possible u32 values, this means
you will probably need some sort of Unknown variant.
Required Methods§
sourcefn bucket_size_limit(&self) -> u64
fn bucket_size_limit(&self) -> u64
Returns the size limit for this command.
must be less than usize::MAX
sourcefn is_handshake(&self) -> bool
fn is_handshake(&self) -> bool
Returns if this is a handshake
Object Safety§
This trait is not object safe.