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§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 Forget for SwitchResult
impl Freeze for SwitchResultwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Vec<u8>>: Freeze,
impl Move for SwitchResult
impl RefUnwindSafe for SwitchResult
impl Send for SwitchResultwhere
RawVecInner: Send,
impl Sync for SwitchResultwhere
RawVecInner: Sync,
impl Unpin for SwitchResult
impl UnsafeUnpin for SwitchResultwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Vec<u8>>: UnsafeUnpin,
impl UnwindSafe for SwitchResultwhere
RawVecInner: UnwindSafe,
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