pub enum ReconnectBehavior {
Enabled(ReconnectPolicy),
Disabled,
}Expand description
Whether a connect_* call should reconnect automatically on disconnect. Defaults to
Enabled with ReconnectPolicy::default() - production charge points are expected to keep
retrying the CSMS connection, so that’s the out-of-the-box behavior; set
ConnectOptions::reconnect to Disabled to opt out.
Variants§
Enabled(ReconnectPolicy)
Disabled
Trait Implementations§
Source§impl Clone for ReconnectBehavior
impl Clone for ReconnectBehavior
Source§fn clone(&self) -> ReconnectBehavior
fn clone(&self) -> ReconnectBehavior
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ReconnectBehavior
Source§impl Debug for ReconnectBehavior
impl Debug for ReconnectBehavior
Auto Trait Implementations§
impl Freeze for ReconnectBehavior
impl RefUnwindSafe for ReconnectBehavior
impl Send for ReconnectBehavior
impl Sync for ReconnectBehavior
impl Unpin for ReconnectBehavior
impl UnsafeUnpin for ReconnectBehavior
impl UnwindSafe for ReconnectBehavior
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