use crate::config::UblxOpts;
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum RunMode {
Stream,
Sequential,
}
impl RunMode {
#[must_use]
pub fn from_opts(opts: &UblxOpts) -> Self {
if opts.streaming {
Self::Stream
} else {
Self::Sequential
}
}
}