Struct idasen::Idasen [−][src]
Fields
mac_addr: BDAddr
Implementations
impl<T: Device> Idasen<T>
[src]
pub fn new(desk: T) -> Result<Self, Error>
[src]
Instantiate the struct. Requires Device
instance.
pub fn up(&self) -> Result<()>
[src]
Move desk up.
pub fn down(&self) -> Result<()>
[src]
Lower the desk’s position.
pub fn stop(&self) -> Result<()>
[src]
Stop desk from moving.
pub fn move_to(&self, target_position: u16) -> Result<(), Error>
[src]
Move desk to a desired position. The precision is decent, usually less than 1mm off.
pub fn move_to_with_progress(&self, target_position: u16) -> Result<(), Error>
[src]
pub fn position(&self) -> Result<u16, Error>
[src]
Return the desk height in tenth millimeters (1m = 10000)
Auto Trait Implementations
impl<T> RefUnwindSafe for Idasen<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Idasen<T>
impl<T> Sync for Idasen<T>
impl<T> Unpin for Idasen<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Idasen<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,