[][src]Struct nsl_duplex_d2::DuplexD2

pub struct DuplexD2 { /* fields omitted */ }

Structure for interacting with Duplex-D2 Radio API

Methods

impl DuplexD2[src]

pub fn new(conn: Connection) -> DuplexD2[src]

Constructor for DuplexD2 structure

pub fn get_state_of_health_for_modem(&self) -> RadioResult<StateOfHealth>[src]

Retrieves a record of information regarding modem functioning.

pub fn get_uploaded_file_count(&self) -> RadioResult<u32>[src]

Retrieves a count of files that have been received by the modem and await retrieval by the FP.

pub fn get_uploaded_message_count(&self) -> RadioResult<u32>[src]

Retrieves a count of messages that have been received by the modem and await retrieval by the FP.

pub fn get_download_file_count(&self) -> RadioResult<u32>[src]

Retrieves a count of messages that have been received by the modem and await retrieval by the FP.

pub fn get_geolocation_position_estimate(&self) -> RadioResult<GeoRecord>[src]

Retrieves an estimate of the modem’s latitude and longitude coordinates at the time of the last connection.

pub fn get_uploaded_file(&self) -> RadioResult<File>[src]

Retrieves the next file in the upload queue. File is then ACKed and deleted from queue.

pub fn get_uploaded_message(&self) -> RadioResult<File>[src]

Retrieves the next message in the upload queue. Message is then ACKed and deleted.

pub fn delete_download_files(&self) -> RadioResult<u32>[src]

Deletes all files in the modem download queue. Returns number of files deleted.

pub fn delete_uploaded_files(&self) -> RadioResult<u32>[src]

Deletes all files in the modem upload queue. Returns number of files deleted.

pub fn delete_uploaded_messages(&self) -> RadioResult<u32>[src]

Deletes all messages in the modem upload queue. Returns number of messages deleted.

pub fn put_download_file(&self, file: &File) -> RadioResult<bool>[src]

Put a new file on the download queue, returns true if accepted by EyeStar-D2.

pub fn get_alive(&self) -> RadioResult<bool>[src]

Check if modem is powered and if it is able to respond to commands.

Auto Trait Implementations

impl Send for DuplexD2

impl !Sync for DuplexD2

Blanket Implementations

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.

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

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

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