pub struct RtServer {
budget: u32,
budget_left: u32,
period: u32,
deadline: u64,
uid: UId,
_rt_links: Links<RtTree, UId>,
}Fields§
§budget: u32§budget_left: u32§period: u32§deadline: u64§uid: UId§_rt_links: Links<RtTree, UId>Real-time tree links for the server.
Implementations§
Source§impl RtServer
impl RtServer
pub fn new(budget: u32, period: u32, deadline: u64, uid: UId) -> Self
pub fn budget_left(&self) -> u32
pub fn budget(&self) -> u32
fn violates_sched(&self, now: u64) -> bool
pub fn on_wakeup(&mut self, now: u64)
pub fn replenish(&mut self)
pub fn consume(&mut self, dt: u64) -> Option<u64>
pub fn deadline(&self) -> u64
pub fn uid(&self) -> UId
Trait Implementations§
impl Copy for RtServer
Auto Trait Implementations§
impl Freeze for RtServer
impl RefUnwindSafe for RtServer
impl Send for RtServer
impl Sync for RtServer
impl Unpin for RtServer
impl UnwindSafe for RtServer
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