pub enum LifecycleMode {
KeepAlive,
Lazy,
Eager,
}Expand description
Server lifecycle modes.
Variants§
KeepAlive
Keep connection alive, auto-reconnect on failure.
Lazy
Connect on first use, disconnect after idle timeout.
Eager
Connect eagerly at startup.
Trait Implementations§
Source§impl Clone for LifecycleMode
impl Clone for LifecycleMode
Source§fn clone(&self) -> LifecycleMode
fn clone(&self) -> LifecycleMode
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 moreSource§impl Debug for LifecycleMode
impl Debug for LifecycleMode
Source§impl<'de> Deserialize<'de> for LifecycleMode
impl<'de> Deserialize<'de> for LifecycleMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LifecycleMode
impl RefUnwindSafe for LifecycleMode
impl Send for LifecycleMode
impl Sync for LifecycleMode
impl Unpin for LifecycleMode
impl UnsafeUnpin for LifecycleMode
impl UnwindSafe for LifecycleMode
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