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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.