pub struct AutoComputeRouter { /* private fields */ }Expand description
Auto router that accepts device placement only with fresh compatible evidence.
Implementations§
Source§impl AutoComputeRouter
impl AutoComputeRouter
Sourcepub fn new(expected: ComputeDeviceIdentity, now_tick: u64) -> Self
pub fn new(expected: ComputeDeviceIdentity, now_tick: u64) -> Self
Builds a router for expected device identity at now_tick.
Sourcepub fn choose(
&self,
profile: Option<&MeasuredComputeProfile>,
) -> (AutoRouteDecision, Option<ModeledComputeProfile>)
pub fn choose( &self, profile: Option<&MeasuredComputeProfile>, ) -> (AutoRouteDecision, Option<ModeledComputeProfile>)
Returns the decision and modeled profile when device placement is proven.
Trait Implementations§
Source§impl Clone for AutoComputeRouter
impl Clone for AutoComputeRouter
Source§fn clone(&self) -> AutoComputeRouter
fn clone(&self) -> AutoComputeRouter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AutoComputeRouter
impl RefUnwindSafe for AutoComputeRouter
impl Send for AutoComputeRouter
impl Sync for AutoComputeRouter
impl Unpin for AutoComputeRouter
impl UnsafeUnpin for AutoComputeRouter
impl UnwindSafe for AutoComputeRouter
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