pub struct SwitchResult {
pub previous_task: String,
pub new_task: String,
pub switch_mode: String,
pub switch_latency_ms: f64,
pub new_sparsity: f32,
pub new_active_params: String,
pub diff: MaskDiff,
}Expand description
Response from a task switch operation.
Fields§
§previous_task: String§new_task: String§switch_mode: String§switch_latency_ms: f64§new_sparsity: f32§new_active_params: String§diff: MaskDiffTrait Implementations§
Source§impl Clone for SwitchResult
impl Clone for SwitchResult
Source§fn clone(&self) -> SwitchResult
fn clone(&self) -> SwitchResult
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 moreSource§impl Debug for SwitchResult
impl Debug for SwitchResult
Source§impl<'de> Deserialize<'de> for SwitchResult
impl<'de> Deserialize<'de> for SwitchResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SwitchResult
impl RefUnwindSafe for SwitchResult
impl Send for SwitchResult
impl Sync for SwitchResult
impl Unpin for SwitchResult
impl UnsafeUnpin for SwitchResult
impl UnwindSafe for SwitchResult
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