struct UsageSettings {
poll_seconds: Option<u64>,
}Expand description
One [usage] table. Unknown fields are rejected so a mistyped
key fails the load instead of being ignored.
Fields§
§poll_seconds: Option<u64>How often the background poller refreshes account usage, in
seconds. The default is DEFAULT_USAGE_POLL_SECONDS, and the
key exists for the machine that wants a different one.
Implementations§
Source§impl UsageSettings
impl UsageSettings
Sourcefn resolved_poll_interval(
&self,
path: &Path,
) -> Result<Duration, WorkspaceError>
fn resolved_poll_interval( &self, path: &Path, ) -> Result<Duration, WorkspaceError>
The resolved interval. 0 is refused rather than obeyed: a zero-second interval would probe continuously.
Trait Implementations§
Source§impl Debug for UsageSettings
impl Debug for UsageSettings
Source§impl Default for UsageSettings
impl Default for UsageSettings
Source§impl<'de> Deserialize<'de> for UsageSettings
impl<'de> Deserialize<'de> for UsageSettings
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 UsageSettings
impl RefUnwindSafe for UsageSettings
impl Send for UsageSettings
impl Sync for UsageSettings
impl Unpin for UsageSettings
impl UnsafeUnpin for UsageSettings
impl UnwindSafe for UsageSettings
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more