struct FileInfo {Show 13 fields
filename: String,
hierarchy: Hierarchy,
file_format: FileFormat,
header_len: u64,
body_len: u64,
body_progress: Arc<AtomicU64>,
notify: Arc<Notify>,
timetable: Vec<Time>,
signals: HashMap<SignalRef, Signal>,
reloading: bool,
last_reload_ok: bool,
last_reload_time: Option<Instant>,
last_file_mtime: Option<SystemTime>,
}Fields§
§filename: String§hierarchy: Hierarchy§file_format: FileFormat§header_len: u64§body_len: u64§body_progress: Arc<AtomicU64>§notify: Arc<Notify>§timetable: Vec<Time>§signals: HashMap<SignalRef, Signal>§reloading: bool§last_reload_ok: bool§last_reload_time: Option<Instant>§last_file_mtime: Option<SystemTime>Implementations§
Source§impl FileInfo
impl FileInfo
pub fn modification_time_string(&self) -> String
pub fn reload_time_string(&self) -> String
pub fn html_table_line(&self) -> String
Auto Trait Implementations§
impl Freeze for FileInfo
impl RefUnwindSafe for FileInfo
impl Send for FileInfo
impl Sync for FileInfo
impl Unpin for FileInfo
impl UnwindSafe for FileInfo
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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