pub struct Periodic {
pub period: Duration,
pub budget: Service,
}Expand description
The classic periodic resource model.
The client(s) of this supply is/are guaranteed (at least)
budget time units of processor service every period time
units.
Fields§
§period: Duration§budget: ServiceImplementations§
Trait Implementations§
Source§impl SupplyBound for Periodic
impl SupplyBound for Periodic
Source§fn provided_service(&self, delta: Duration) -> Service
fn provided_service(&self, delta: Duration) -> Service
Bound the minimum amount of service provided during an
interval of length
delta.Source§fn service_time(&self, demand: Service) -> Duration
fn service_time(&self, demand: Service) -> Duration
Bound the maximum interval length during which the supply
provides at least
demand amount of service.impl Copy for Periodic
Auto Trait Implementations§
impl Freeze for Periodic
impl RefUnwindSafe for Periodic
impl Send for Periodic
impl Sync for Periodic
impl Unpin for Periodic
impl UnwindSafe for Periodic
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more