pub struct EffectOffload {
pub gpu: bool,
pub cpu_time_ms: u64,
pub memory_bytes: u64,
pub output_bytes: u64,
}Expand description
An effect’s #[effect(offload(...))]: what the transform needs of a
device, so the system may dispatch it to the invoker’s best-placed one
(tilo_actions::Offload).
Fields§
§gpu: boolWhether it needs a GPU.
cpu_time_ms: u64CPU time ceiling, in milliseconds.
memory_bytes: u64Memory ceiling, in bytes.
output_bytes: u64Ceiling on all outputs together, in bytes.
Implementations§
Trait Implementations§
Source§impl Clone for EffectOffload
impl Clone for EffectOffload
impl Copy for EffectOffload
Source§impl Debug for EffectOffload
impl Debug for EffectOffload
impl Eq for EffectOffload
Source§impl PartialEq for EffectOffload
impl PartialEq for EffectOffload
impl StructuralPartialEq for EffectOffload
Auto Trait Implementations§
impl Forget for EffectOffload
impl Freeze for EffectOffload
impl Move for EffectOffload
impl RefUnwindSafe for EffectOffload
impl Send for EffectOffload
impl Sync for EffectOffload
impl Unpin for EffectOffload
impl UnsafeUnpin for EffectOffload
impl UnwindSafe for EffectOffload
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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