#[repr(i32)]pub enum AutotuneCacheMode {
Unspecified = 0,
Update = 1,
Read = 2,
}Variants§
Unspecified = 0
Update = 1
If the cache exists per fusion autotuner loads it and terminates, otherwise runs autotuner and dumps the result.
Read = 2
Sets readonly access to the cache for the per fusion autotuner. Same as above, but doesn’t dump anything.
Implementations§
Source§impl AutotuneCacheMode
impl AutotuneCacheMode
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for AutotuneCacheMode
impl Clone for AutotuneCacheMode
Source§fn clone(&self) -> AutotuneCacheMode
fn clone(&self) -> AutotuneCacheMode
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AutotuneCacheMode
impl Debug for AutotuneCacheMode
Source§impl Default for AutotuneCacheMode
impl Default for AutotuneCacheMode
Source§fn default() -> AutotuneCacheMode
fn default() -> AutotuneCacheMode
Returns the “default value” for a type. Read more
Source§impl From<AutotuneCacheMode> for i32
impl From<AutotuneCacheMode> for i32
Source§fn from(value: AutotuneCacheMode) -> i32
fn from(value: AutotuneCacheMode) -> i32
Converts to this type from the input type.
Source§impl Hash for AutotuneCacheMode
impl Hash for AutotuneCacheMode
Source§impl Ord for AutotuneCacheMode
impl Ord for AutotuneCacheMode
Source§impl PartialEq for AutotuneCacheMode
impl PartialEq for AutotuneCacheMode
Source§impl PartialOrd for AutotuneCacheMode
impl PartialOrd for AutotuneCacheMode
Source§impl TryFrom<i32> for AutotuneCacheMode
impl TryFrom<i32> for AutotuneCacheMode
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<AutotuneCacheMode, UnknownEnumValue>
fn try_from(value: i32) -> Result<AutotuneCacheMode, UnknownEnumValue>
Performs the conversion.
impl Copy for AutotuneCacheMode
impl Eq for AutotuneCacheMode
impl StructuralPartialEq for AutotuneCacheMode
Auto Trait Implementations§
impl Freeze for AutotuneCacheMode
impl RefUnwindSafe for AutotuneCacheMode
impl Send for AutotuneCacheMode
impl Sync for AutotuneCacheMode
impl Unpin for AutotuneCacheMode
impl UnwindSafe for AutotuneCacheMode
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
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)