Struct atat::ClientBuilder [−][src]
pub struct ClientBuilder<Tx, T, U, D, const BUF_LEN: usize, const RES_CAPACITY: usize, const URC_CAPACITY: usize> where
Tx: Write<u8>,
T: CountDown,
T::Time: From<u32>,
U: UrcMatcher,
D: Digester, { /* fields omitted */ }
Expand description
Builder to set up a Client
and IngressManager
pair.
Create a new builder through the new
method.
Implementations
impl<Tx, T, const BUF_LEN: usize, const RES_CAPACITY: usize, const URC_CAPACITY: usize> ClientBuilder<Tx, T, DefaultUrcMatcher, DefaultDigester, BUF_LEN, RES_CAPACITY, URC_CAPACITY> where
Tx: Write<u8>,
T: CountDown,
T::Time: From<u32>,
impl<Tx, T, const BUF_LEN: usize, const RES_CAPACITY: usize, const URC_CAPACITY: usize> ClientBuilder<Tx, T, DefaultUrcMatcher, DefaultDigester, BUF_LEN, RES_CAPACITY, URC_CAPACITY> where
Tx: Write<u8>,
T: CountDown,
T::Time: From<u32>,
Create a builder for new Atat client instance.
The serial_tx
type must implement the embedded_hal
serial::Write<u8>
trait while the timer must implement
the timer::CountDown
trait.
pub fn with_custom_urc_matcher<U2: UrcMatcher>(
self,
matcher: U2
) -> ClientBuilder<Tx, T, U2, D, BUF_LEN, RES_CAPACITY, URC_CAPACITY>
pub fn with_custom_urc_matcher<U2: UrcMatcher>(
self,
matcher: U2
) -> ClientBuilder<Tx, T, U2, D, BUF_LEN, RES_CAPACITY, URC_CAPACITY>
Use a custom UrcMatcher
implementation.
pub fn with_custom_digester<D2: Digester>(
self,
digester: D2
) -> ClientBuilder<Tx, T, U, D2, BUF_LEN, RES_CAPACITY, URC_CAPACITY>
pub fn with_custom_digester<D2: Digester>(
self,
digester: D2
) -> ClientBuilder<Tx, T, U, D2, BUF_LEN, RES_CAPACITY, URC_CAPACITY>
Use a custom Digester
implementation.
Set up and return a Client
and IngressManager
pair.