[][src]Struct lora_serial::LoRaSerialBuilder

pub struct LoRaSerialBuilder { /* fields omitted */ }

Builder for LoRaSerial.

Methods

impl LoRaSerialBuilder[src]

pub fn port(self, value: Box<dyn SerialPort>) -> Self[src]

pub fn timeout(self, value: StdDuration) -> Self[src]

pub fn instance_id(self, value: String) -> Self[src]

pub fn modem_address(self, value: u8) -> Self[src]

impl LoRaSerialBuilder[src]

pub fn port_name(self, name: &str) -> Result<Self, Error>[src]

convenience function to initialize a serial port based on the name

pub fn build(self) -> Result<LoRaSerial, ErrorKind>[src]

Trait Implementations

impl Default for LoRaSerialBuilder[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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> Borrow<T> for T where
    T: ?Sized
[src]

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

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