[−][src]Struct saberrs::sabertooth2x32::PlainText
Interface using "Plain Text" protocol.
Implementations
impl PlainText<SabertoothPort>
[src]
pub fn new(port: &str) -> Result<PlainText<SabertoothPort>>
[src]
Create a default new "Plain Text" interface.
Trait Implementations
impl<T, '_> From<&'_ T> for PlainText<T> where
T: SabertoothSerial + Clone,
[src]
T: SabertoothSerial + Clone,
impl<T: SabertoothSerial> From<T> for PlainText<T>
[src]
impl<T: SabertoothSerial> Sabertooth2x32 for PlainText<T>
[src]
fn startup(&mut self, channel: usize) -> Result<()>
[src]
fn shutdown(&mut self, channel: usize) -> Result<()>
[src]
fn set_speed(&mut self, channel: usize, ratio: f32) -> Result<()>
[src]
fn get_speed(&mut self, channel: usize) -> Result<f32>
[src]
fn set_drive(&mut self, ratio: f32) -> Result<()>
[src]
fn set_turn(&mut self, ratio: f32) -> Result<()>
[src]
fn set_power(&mut self, channel: usize, ratio: f32) -> Result<()>
[src]
fn get_power(&mut self, channel: usize) -> Result<f32>
[src]
fn set_ramp(&mut self, channel: usize, ratio: f32) -> Result<()>
[src]
fn set_aux(&mut self, channel: usize, ratio: f32) -> Result<()>
[src]
fn get_voltage(&mut self, channel: usize) -> Result<f32>
[src]
fn get_current(&mut self, channel: usize) -> Result<f32>
[src]
fn get_temperature(&mut self, channel: usize) -> Result<f32>
[src]
fn stop_motors(&mut self) -> Result<()>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for PlainText<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for PlainText<T> where
T: Send,
T: Send,
impl<T> Sync for PlainText<T> where
T: Sync,
T: Sync,
impl<T> Unpin for PlainText<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for PlainText<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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<!> for 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.
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>,