pub struct DelayList {
pub delays: Vec<Delay>,
pub warnings: Vec<DelayWarning>,
}Expand description
A delay string read into settings.
Fields§
§delays: Vec<Delay>The settings in the order written (some files list them longest first).
warnings: Vec<DelayWarning>Problems found while reading: an empty or unreadable piece (WarningKind::Dropped, and
left out of delays), or an ambiguous 0 (WarningKind::Unusual, kept as
Delay::ZeroOrPlugged).
Implementations§
Source§impl DelayList
impl DelayList
Sourcepub fn parse(raw: &str) -> Self
pub fn parse(raw: &str) -> Self
Reads a delay string such as 6-10-14, 5,8,11, P, 6-10-14-P or 1000. Any number
equal to 100 or 1000 (1000. too) is a plugged marker.
Sourcepub fn has_plugged(&self) -> bool
pub fn has_plugged(&self) -> bool
Whether any setting is plugged (Delay::Plugged; an ambiguous 0 doesn’t count).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DelayList
impl<'de> Deserialize<'de> for DelayList
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 DelayList
Auto Trait Implementations§
impl Freeze for DelayList
impl RefUnwindSafe for DelayList
impl Send for DelayList
impl Sync for DelayList
impl Unpin for DelayList
impl UnsafeUnpin for DelayList
impl UnwindSafe for DelayList
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