Struct telepAIr::telegram_client::ReconectPolicy
source · struct ReconectPolicy;
Trait Implementations§
source§impl ReconnectionPolicy for ReconectPolicy
impl ReconnectionPolicy for ReconectPolicy
source§fn should_retry(&self, attempts: usize) -> ControlFlow<(), Duration>
fn should_retry(&self, attempts: usize) -> ControlFlow<(), Duration>
this function will indicate that the handler should attempt for a new reconnection or not. Read more
Auto Trait Implementations§
impl Freeze for ReconectPolicy
impl RefUnwindSafe for ReconectPolicy
impl Send for ReconectPolicy
impl Sync for ReconectPolicy
impl Unpin for ReconectPolicy
impl UnwindSafe for ReconectPolicy
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