pub struct Config { /* private fields */ }
Expand description
Configuration of both the ingress manager, and the AT client. Some of these
parameters can be changed on the fly, through issuing a Command
from the
client.
Implementations§
source§impl Config
impl Config
pub fn new() -> Self
pub const fn tx_timeout(self, duration: Duration) -> Self
pub const fn flush_timeout(self, duration: Duration) -> Self
pub const fn cmd_cooldown(self, duration: Duration) -> Self
sourcepub const fn get_response_timeout(
self,
compute: fn(_: Instant, _: Duration) -> Instant,
) -> Self
pub const fn get_response_timeout( self, compute: fn(_: Instant, _: Duration) -> Instant, ) -> Self
Set a custom computation for determining the reponse timeout instant for a request sent at a specific time. The timeout is recomputed continously, so it is possible to for example artificially extend the timeout if for example flow control has hindered the device to actually communicate during the period from the request is sent until the response is expected.
Trait Implementations§
source§impl PartialEq for Config
impl PartialEq for Config
impl Copy for Config
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)