pub enum CoTimeout {
Default,
Duration(Duration),
Scope(String, Duration),
}Expand description
CO timeout setting.
Variants§
Default
Use default timeout settings. Usually from the parent CO or global timeout.
Duration(Duration)
Duration.
Scope(String, Duration)
Scoped setting.
Implementations§
Source§impl CoTimeout
impl CoTimeout
pub fn default_duration() -> Duration
pub fn get_timeout<'a>( tags: impl IntoIterator<Item = &'a Tag>, scope: Option<&str>, default: Option<Duration>, ) -> Duration
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CoTimeout
impl<'de> Deserialize<'de> for CoTimeout
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
impl StructuralPartialEq for CoTimeout
Auto Trait Implementations§
impl Freeze for CoTimeout
impl RefUnwindSafe for CoTimeout
impl Send for CoTimeout
impl Sync for CoTimeout
impl Unpin for CoTimeout
impl UnsafeUnpin for CoTimeout
impl UnwindSafe for CoTimeout
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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