#[non_exhaustive]pub struct Accelerator {
pub accelerator_type: AcceleratorType,
pub state: State,
/* private fields */
}Expand description
Identifies Data Fusion accelerators for an instance.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.accelerator_type: AcceleratorTypeThe type of an accelator for a CDF instance.
state: StateThe state of the accelerator
Implementations§
Source§impl Accelerator
impl Accelerator
pub fn new() -> Self
Sourcepub fn set_accelerator_type<T: Into<AcceleratorType>>(self, v: T) -> Self
pub fn set_accelerator_type<T: Into<AcceleratorType>>(self, v: T) -> Self
Sets the value of accelerator_type.
Trait Implementations§
Source§impl Clone for Accelerator
impl Clone for Accelerator
Source§fn clone(&self) -> Accelerator
fn clone(&self) -> Accelerator
Returns a duplicate 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 Accelerator
impl Debug for Accelerator
Source§impl Default for Accelerator
impl Default for Accelerator
Source§fn default() -> Accelerator
fn default() -> Accelerator
Returns the “default value” for a type. Read more
Source§impl Message for Accelerator
impl Message for Accelerator
Source§impl PartialEq for Accelerator
impl PartialEq for Accelerator
impl StructuralPartialEq for Accelerator
Auto Trait Implementations§
impl Freeze for Accelerator
impl RefUnwindSafe for Accelerator
impl Send for Accelerator
impl Sync for Accelerator
impl Unpin for Accelerator
impl UnwindSafe for Accelerator
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