pub struct KeepConfig { /* private fields */ }Implementations§
Source§impl KeepConfig
impl KeepConfig
pub fn new(endpoint: &str) -> Result<Self, ConfigError>
pub fn from_env() -> Result<Option<Self>, ConfigError>
pub fn endpoint(&self) -> &str
pub fn token(self, token: impl Into<String>) -> Self
pub fn connect_timeout(self, timeout: Duration) -> Self
pub fn timeout(self, timeout: Duration) -> Self
Trait Implementations§
Source§impl Clone for KeepConfig
impl Clone for KeepConfig
Auto Trait Implementations§
impl Forget for KeepConfig
impl Freeze for KeepConfig
impl Move for KeepConfig
impl RefUnwindSafe for KeepConfig
impl Send for KeepConfigwhere
RawVecInner: Send,
impl Sync for KeepConfigwhere
RawVecInner: Sync,
impl Unpin for KeepConfig
impl UnsafeUnpin for KeepConfig
impl UnwindSafe for KeepConfigwhere
RawVecInner: UnwindSafe,
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