pub struct StopTimeout(/* private fields */);Expand description
Raw-preserving stop grace duration.
Source adapters validate native duration grammar; target adapters report spellings their selected implementation cannot express.
Implementations§
Source§impl StopTimeout
impl StopTimeout
Sourcepub fn new(value: impl Into<String>) -> Result<Self, ModelError>
pub fn new(value: impl Into<String>) -> Result<Self, ModelError>
Creates a non-empty duration spelling without imposing one source format’s grammar.
§Errors
Returns ModelError::EmptyValue or ModelError::ContainsNul.
Trait Implementations§
Source§impl Clone for StopTimeout
impl Clone for StopTimeout
Source§fn clone(&self) -> StopTimeout
fn clone(&self) -> StopTimeout
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 StopTimeout
impl Debug for StopTimeout
impl Eq for StopTimeout
Source§impl PartialEq for StopTimeout
impl PartialEq for StopTimeout
impl StructuralPartialEq for StopTimeout
Auto Trait Implementations§
impl Freeze for StopTimeout
impl RefUnwindSafe for StopTimeout
impl Send for StopTimeout
impl Sync for StopTimeout
impl Unpin for StopTimeout
impl UnsafeUnpin for StopTimeout
impl UnwindSafe for StopTimeout
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