Struct dslab_compute::multicore::CompRequest
source · pub struct CompRequest {
pub flops: f64,
pub memory: u64,
pub min_cores: u32,
pub max_cores: u32,
pub cores_dependency: CoresDependency,
pub requester: Id,
}Expand description
Request to start a computation.
Fields§
§flops: f64Total computation size.
memory: u64Total memory needed for a computation.
min_cores: u32Minimum number of used cores.
max_cores: u32Maximum number of used cores.
cores_dependency: CoresDependencyDefines the dependence of parallel speedup on the number of used cores.
requester: IdId of simulation component to inform about the computation progress.
Trait Implementations§
source§impl Clone for CompRequest
impl Clone for CompRequest
source§fn clone(&self) -> CompRequest
fn clone(&self) -> CompRequest
Returns a copy 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 CompRequest
impl Debug for CompRequest
Auto Trait Implementations§
impl Freeze for CompRequest
impl RefUnwindSafe for CompRequest
impl Send for CompRequest
impl Sync for CompRequest
impl Unpin for CompRequest
impl UnwindSafe for CompRequest
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.