pub struct ServerProperties {
pub capacity: TimeUnit,
pub interval: TimeUnit,
pub server_type: ServerKind,
}Expand description
The Properties of a server
Fields§
§capacity: TimeUnitThe capacity for fulfilling Demand
interval: TimeUnitHow often the capacity is available
server_type: ServerKindHow the available capacity behaves
Trait Implementations§
Source§impl Clone for ServerProperties
impl Clone for ServerProperties
Source§fn clone(&self) -> ServerProperties
fn clone(&self) -> ServerProperties
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServerProperties
impl Debug for ServerProperties
impl Copy for ServerProperties
Auto Trait Implementations§
impl Freeze for ServerProperties
impl RefUnwindSafe for ServerProperties
impl Send for ServerProperties
impl Sync for ServerProperties
impl Unpin for ServerProperties
impl UnwindSafe for ServerProperties
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