Struct e_drone_rpi::Drone[][src]

pub struct Drone {
    pub time_start: Instant,
    pub time_transfer: Instant,
    pub time_receive: Instant,
    pub receiver: Receiver,
    pub buffer: [u8; 1024],
    pub port: Result<Uart, Error>,
}

Fields

time_start: Instanttime_transfer: Instanttime_receive: Instantreceiver: Receiverbuffer: [u8; 1024]port: Result<Uart, Error>

Implementations

impl Drone[src]

pub fn new() -> Drone[src]

pub fn new_path(port_name: &str) -> Drone[src]

pub fn is_connected(&mut self) -> bool[src]

pub fn check(&mut self) -> Data[src]

pub fn get_time_passed_from_start(&self) -> u128[src]

pub fn get_time_passed_from_last_transfer(&self) -> u128[src]

pub fn get_time_passed_from_last_receive(&self) -> u128[src]

pub fn sleep(&self, time_sleep_ms: u64)[src]

pub fn send(&mut self, slice_data: &[u8])[src]

pub fn request(&mut self, device_type: DeviceType, data_type: DataType)[src]

Auto Trait Implementations

impl !RefUnwindSafe for Drone

impl Send for Drone

impl Sync for Drone

impl Unpin for Drone

impl !UnwindSafe for Drone

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.