Struct pandacan::Panda[][src]

pub struct Panda<'a> { /* fields omitted */ }

Implementations

impl<'a> Panda<'a>[src]

pub fn new(context: &'a Context, timeout: Duration) -> Panda<'a>[src]

pub fn health(&self) -> Result<Health, Error>[src]

pub fn set_safety_model(
    &self,
    safety_model: SafetyModel,
    safety_param: u16
) -> Result<(), Error>
[src]

pub fn set_unsafe_mode(&self, unsafe_mode: UnsafeMode) -> Result<(), Error>[src]

pub fn set_fan_speed(&self, fan_speed: u16) -> Result<(), Error>[src]

pub fn get_fan_speed(&self) -> Result<u16, Error>[src]

pub fn set_ir_pwr(&self, ir_pwr: u16) -> Result<(), Error>[src]

pub fn set_loopback(&self, loopback: bool) -> Result<(), Error>[src]

pub fn set_power_saving(&self, power_saving: bool) -> Result<(), Error>[src]

pub fn set_usb_power_mode(&self, power_mode: UsbPowerMode) -> Result<(), Error>[src]

pub fn send_heartbeat(&self) -> Result<(), Error>[src]

pub fn get_fw_version(&self) -> Result<[u8; 128], Error>[src]

pub fn get_serial(&self) -> Result<String, Error>[src]

pub fn get_hw_type(&self) -> Result<HwType, Error>[src]

pub fn get_rtc(&self) -> Result<RtcTime, Error>[src]

pub fn can_receive(&self) -> Result<Vec<CanMessage>, Error>[src]

pub fn can_send(&self, can_data: Vec<CanMessage>) -> Result<(), Error>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Panda<'a>

impl<'a> Send for Panda<'a>

impl<'a> Sync for Panda<'a>

impl<'a> Unpin for Panda<'a>

impl<'a> UnwindSafe for Panda<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.