pub struct FacadeSchedule<'a> { /* private fields */ }Expand description
Implementations§
Source§impl<'a> FacadeSchedule<'a>
impl<'a> FacadeSchedule<'a>
Sourcepub fn tick(&mut self) -> Result<bool, GraphError>
pub fn tick(&mut self) -> Result<bool, GraphError>
Send out resources for the next batch of the schedule and return true when
either of these conditions are met:
- request batches are still queued
- resources are still loaned
Sourcepub fn run(&mut self) -> Result<(), GraphError>
pub fn run(&mut self) -> Result<(), GraphError>
Run the schedule by calling FacadeSchedule::tick in a loop until all
requests are fulfilled and system resources are unified.
pub fn is_empty(&self) -> bool
Auto Trait Implementations§
impl<'a> Freeze for FacadeSchedule<'a>
impl<'a> !RefUnwindSafe for FacadeSchedule<'a>
impl<'a> !Send for FacadeSchedule<'a>
impl<'a> !Sync for FacadeSchedule<'a>
impl<'a> Unpin for FacadeSchedule<'a>
impl<'a> !UnwindSafe for FacadeSchedule<'a>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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> 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