pub struct DiagnosticsPageState {Show 18 fields
pub uptime_secs: Option<u64>,
pub daemon_pid: Option<u32>,
pub accounts: Vec<String>,
pub total_messages: Option<u32>,
pub sync_statuses: Vec<AccountSyncStatus>,
pub doctor: Option<DoctorReport>,
pub events: Vec<EventLogEntry>,
pub logs: Vec<String>,
pub status: Option<String>,
pub refresh_pending: bool,
pub pending_requests: u8,
pub selected_pane: DiagnosticsPaneKind,
pub fullscreen_pane: Option<DiagnosticsPaneKind>,
pub status_scroll_offset: u16,
pub data_scroll_offset: u16,
pub sync_scroll_offset: u16,
pub events_scroll_offset: u16,
pub logs_scroll_offset: u16,
}Fields§
§uptime_secs: Option<u64>§daemon_pid: Option<u32>§accounts: Vec<String>§total_messages: Option<u32>§sync_statuses: Vec<AccountSyncStatus>§doctor: Option<DoctorReport>§events: Vec<EventLogEntry>§logs: Vec<String>§status: Option<String>§refresh_pending: bool§pending_requests: u8§selected_pane: DiagnosticsPaneKind§fullscreen_pane: Option<DiagnosticsPaneKind>§status_scroll_offset: u16§data_scroll_offset: u16§sync_scroll_offset: u16§events_scroll_offset: u16§logs_scroll_offset: u16Implementations§
Source§impl DiagnosticsPageState
impl DiagnosticsPageState
pub fn active_pane(&self) -> DiagnosticsPaneKind
pub fn toggle_fullscreen(&mut self)
pub fn scroll_offset(&self, pane: DiagnosticsPaneKind) -> u16
pub fn scroll_offset_mut(&mut self, pane: DiagnosticsPaneKind) -> &mut u16
Trait Implementations§
Source§impl Clone for DiagnosticsPageState
impl Clone for DiagnosticsPageState
Source§fn clone(&self) -> DiagnosticsPageState
fn clone(&self) -> DiagnosticsPageState
Returns a duplicate of the value. Read more
1.0.0 · 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 DiagnosticsPageState
impl Debug for DiagnosticsPageState
Source§impl Default for DiagnosticsPageState
impl Default for DiagnosticsPageState
Source§fn default() -> DiagnosticsPageState
fn default() -> DiagnosticsPageState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DiagnosticsPageState
impl RefUnwindSafe for DiagnosticsPageState
impl Send for DiagnosticsPageState
impl Sync for DiagnosticsPageState
impl Unpin for DiagnosticsPageState
impl UnsafeUnpin for DiagnosticsPageState
impl UnwindSafe for DiagnosticsPageState
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> 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