Spaces:
Running
Running
use serde::Deserialize; | |
/// The type of hasher to use. | |
/// # Options | |
/// - Murmur3: The murmur3 hasher. | |
pub(crate) enum HasherType { | |
Murmur3, | |
} | |
/// The configuration for the assignment policy. | |
/// # Options | |
/// - RendezvousHashing: The rendezvous hashing assignment policy. | |
/// # Notes | |
/// See config.rs in the root of the worker crate for an example of how to use | |
/// config files to configure the worker. | |
pub(crate) enum AssignmentPolicyConfig { | |
RendezvousHashing(RendezvousHashingAssignmentPolicyConfig), | |
} | |
/// The configuration for the rendezvous hashing assignment policy. | |
/// # Fields | |
/// - hasher: The type of hasher to use. | |
pub(crate) struct RendezvousHashingAssignmentPolicyConfig { | |
pub(crate) hasher: HasherType, | |
} | |