pub struct ServerSpec {
pub name: String,
pub weight: u32,
}Expand description
Specification for one server in modula mode.
§Examples
use dynomite::hashkit::modula::ServerSpec;
let s = ServerSpec { name: "redis-a".into(), weight: 3 };
assert_eq!(s.weight, 3);Fields§
§name: StringStable, unique identifier.
weight: u32Number of slots this server occupies on the continuum.
Trait Implementations§
Source§impl Clone for ServerSpec
impl Clone for ServerSpec
Source§fn clone(&self) -> ServerSpec
fn clone(&self) -> ServerSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ServerSpec
impl RefUnwindSafe for ServerSpec
impl Send for ServerSpec
impl Sync for ServerSpec
impl Unpin for ServerSpec
impl UnsafeUnpin for ServerSpec
impl UnwindSafe for ServerSpec
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