pub struct Constrained {
pub period: Duration,
pub budget: Service,
pub deadline: Duration,
}
Expand description
A periodic resource with reduced jitter.
This model represents a refined variant of of the Periodic supply model wherein the availability of budget within each period is restricted by a constrained relative deadline.
The client(s) of this supply is/are guaranteed (at least)
budget
time units of processor service every period
time
units within deadline
time units w.r.t. the start of the
period.
Fields§
§period: Duration
§budget: Service
§deadline: Duration
Implementations§
Trait Implementations§
Source§impl Clone for Constrained
impl Clone for Constrained
Source§fn clone(&self) -> Constrained
fn clone(&self) -> Constrained
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 Constrained
impl Debug for Constrained
Source§impl SupplyBound for Constrained
impl SupplyBound for Constrained
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 Constrained
Auto Trait Implementations§
impl Freeze for Constrained
impl RefUnwindSafe for Constrained
impl Send for Constrained
impl Sync for Constrained
impl Unpin for Constrained
impl UnwindSafe for Constrained
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