Config

Struct Config 

Source
pub struct Config<RST, DTR, PWR, VINT> { /* private fields */ }

Implementations§

Source§

impl<RST, DTR, PWR, VINT> Config<RST, DTR, PWR, VINT>
where RST: OutputPin, PWR: OutputPin, DTR: OutputPin, VINT: InputPin,

Source

pub fn new(pin: &str) -> Self

Source

pub fn with_rst(self, rst_pin: RST) -> Self

Source

pub fn with_pwr(self, pwr_pin: PWR) -> Self

Source

pub fn with_dtr(self, dtr_pin: DTR) -> Self

Source

pub fn with_vint(self, vint_pin: VINT) -> Self

Source

pub fn baud_rate<B: Into<u32>>(self, baud_rate: B) -> Self

Source

pub fn with_flow_control(self) -> Self

Source

pub fn with_apn_info(self, apn_info: APNInfo) -> Self

Source

pub fn pin(&self) -> &str

Trait Implementations§

Source§

impl<RST: Debug, DTR: Debug, PWR: Debug, VINT: Debug> Debug for Config<RST, DTR, PWR, VINT>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Config<NoPin, NoPin, NoPin, NoPin>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<RST, DTR, PWR, VINT> Freeze for Config<RST, DTR, PWR, VINT>
where RST: Freeze, DTR: Freeze, PWR: Freeze, VINT: Freeze,

§

impl<RST, DTR, PWR, VINT> RefUnwindSafe for Config<RST, DTR, PWR, VINT>

§

impl<RST, DTR, PWR, VINT> Send for Config<RST, DTR, PWR, VINT>
where RST: Send, DTR: Send, PWR: Send, VINT: Send,

§

impl<RST, DTR, PWR, VINT> Sync for Config<RST, DTR, PWR, VINT>
where RST: Sync, DTR: Sync, PWR: Sync, VINT: Sync,

§

impl<RST, DTR, PWR, VINT> Unpin for Config<RST, DTR, PWR, VINT>
where RST: Unpin, DTR: Unpin, PWR: Unpin, VINT: Unpin,

§

impl<RST, DTR, PWR, VINT> UnwindSafe for Config<RST, DTR, PWR, VINT>
where RST: UnwindSafe, DTR: UnwindSafe, PWR: UnwindSafe, VINT: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.