Struct autd3::Controller
source · pub struct Controller<L: Link, T: Transducer> {
pub ack_check_timeout: Duration,
pub send_interval: Duration,
pub force_fan: bool,
pub reads_fpga_info: bool,
/* private fields */
}Fields
ack_check_timeout: Durationsend_interval: Durationforce_fan: boolreads_fpga_info: boolImplementations
sourceimpl<L: Link, T: Transducer> Controller<L, T>
impl<L: Link, T: Transducer> Controller<L, T>
pub fn open(geometry: Geometry<T>, link: L) -> Result<Controller<L, T>>
sourceimpl<L: Link, T: Transducer> Controller<L, T>
impl<L: Link, T: Transducer> Controller<L, T>
pub fn geometry(&self) -> &Geometry<T>
sourcepub fn send<'a, 'b, S: Sendable<T>>(
&'a mut self,
s: &'b mut S
) -> Sender<'a, 'b, L, T, S, S::H, S::B>
pub fn send<'a, 'b, S: Sendable<T>>(
&'a mut self,
s: &'b mut S
) -> Sender<'a, 'b, L, T, S, S::H, S::B>
pub fn synchronize(&mut self) -> Result<bool>
sourcepub fn firmware_infos(&mut self) -> Result<Vec<FirmwareInfo>>
pub fn firmware_infos(&mut self) -> Result<Vec<FirmwareInfo>>
Return firmware information of the devices
pub fn close(&mut self) -> Result<bool>
sourceimpl<L: Link, T: Transducer> Controller<L, T>
impl<L: Link, T: Transducer> Controller<L, T>
Auto Trait Implementations
impl<L, T> RefUnwindSafe for Controller<L, T>where
L: RefUnwindSafe,
T: RefUnwindSafe,
impl<L, T> Send for Controller<L, T>where
T: Send,
impl<L, T> Sync for Controller<L, T>where
L: Sync,
T: Sync,
impl<L, T> Unpin for Controller<L, T>where
L: Unpin,
T: Unpin,
impl<L, T> UnwindSafe for Controller<L, T>where
L: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read morefn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.