[−][src]Struct meli::components::mail::listing::ConversationsListing
A list of all mail (Envelope
s) in a Mailbox
. On \n
it opens the Envelope
content in a
ThreadView
.
Fields
cursor_pos: (AccountHash, MailboxHash, usize)
(x, y, z): x is accounts, y is mailboxes, z is index inside a mailbox.
new_cursor_pos: (AccountHash, MailboxHash, usize)
length: usize
sort: (SortField, SortOrder)
subsort: (SortField, SortOrder)
all_threads: HashSet<ThreadHash>
order: HashMap<ThreadHash, usize>
content: CellBuffer
Cache current view.
search_job: Option<(String, JoinHandle<Result<SmallVec<[EnvelopeHash; 512]>>>)>
filter_term: String
filtered_selection: Vec<ThreadHash>
filtered_order: HashMap<ThreadHash, usize>
selection: HashMap<ThreadHash, bool>
dirty: bool
If we must redraw on next redraw event
force_draw: bool
unfocused: bool
If self.view
exists or not.
view: ThreadView
row_updates: SmallVec<[ThreadHash; 8]>
color_cache: ColorCache
movement: Option<PageMovement>
modifier_active: bool
modifier_command: Option<Modifier>
id: ComponentId
Implementations
impl ConversationsListing
[src]
const DESCRIPTION: &'static str
[src]
const PADDING_CHAR: char
[src]
pub fn new(coordinates: (AccountHash, MailboxHash)) -> Self
[src]
pub(super) fn make_entry_string(
&self,
e: &Envelope,
context: &Context,
from: &Vec<Address>,
threads: &Threads,
hash: ThreadHash
) -> EntryStrings
[src]
&self,
e: &Envelope,
context: &Context,
from: &Vec<Address>,
threads: &Threads,
hash: ThreadHash
) -> EntryStrings
pub(super) fn format_date(
context: &Context,
epoch: UnixTimestamp
) -> String
[src]
context: &Context,
epoch: UnixTimestamp
) -> String
fn get_thread_under_cursor(&self, cursor: usize) -> ThreadHash
[src]
fn update_line(&mut self, context: &Context, thread_hash: ThreadHash)
[src]
Trait Implementations
impl Component for ConversationsListing
[src]
fn draw(&mut self, grid: &mut CellBuffer, area: Area, context: &mut Context)
[src]
fn process_event(&mut self, event: &mut UIEvent, context: &mut Context) -> bool
[src]
fn is_dirty(&self) -> bool
[src]
fn set_dirty(&mut self, value: bool)
[src]
fn get_shortcuts(&self, context: &Context) -> ShortcutMaps
[src]
fn id(&self) -> ComponentId
[src]
fn set_id(&mut self, id: ComponentId)
[src]
fn is_visible(&self) -> bool
[src]
fn can_quit_cleanly(&mut self, _context: &Context) -> bool
[src]
fn kill(&mut self, _id: ComponentId, _context: &mut Context)
[src]
fn get_status(&self, _context: &Context) -> String
[src]
impl Debug for ConversationsListing
[src]
impl Display for ConversationsListing
[src]
impl ListingTrait for ConversationsListing
[src]
fn coordinates(&self) -> (AccountHash, MailboxHash)
[src]
fn set_coordinates(&mut self, coordinates: (AccountHash, MailboxHash))
[src]
fn highlight_line(
&mut self,
grid: &mut CellBuffer,
area: Area,
idx: usize,
context: &Context
)
[src]
&mut self,
grid: &mut CellBuffer,
area: Area,
idx: usize,
context: &Context
)
fn draw_list(
&mut self,
grid: &mut CellBuffer,
area: Area,
context: &mut Context
)
[src]
&mut self,
grid: &mut CellBuffer,
area: Area,
context: &mut Context
)
Draw the list of Envelope
s.
fn filter(
&mut self,
filter_term: String,
results: Result<SmallVec<[EnvelopeHash; 512]>>,
context: &Context
)
[src]
&mut self,
filter_term: String,
results: Result<SmallVec<[EnvelopeHash; 512]>>,
context: &Context
)
fn unfocused(&self) -> bool
[src]
fn set_modifier_active(&mut self, new_val: bool)
[src]
fn set_modifier_command(&mut self, new_val: Option<Modifier>)
[src]
fn modifier_command(&self) -> Option<Modifier>
[src]
fn set_movement(&mut self, mvm: PageMovement)
[src]
impl MailListingTrait for ConversationsListing
[src]
fn row_updates(&mut self) -> &mut SmallVec<[ThreadHash; 8]>
[src]
fn selection(&mut self) -> &mut HashMap<ThreadHash, bool>
[src]
fn get_focused_items(&self, _context: &Context) -> SmallVec<[ThreadHash; 8]>
[src]
fn refresh_mailbox(&mut self, context: &mut Context, force: bool)
[src]
Fill the self.data_columns
CellBuffers
with the contents of the account mailbox the user has
chosen.
fn redraw_threads_list(
&mut self,
context: &Context,
items: Box<dyn Iterator<Item = ThreadHash>>
)
[src]
&mut self,
context: &Context,
items: Box<dyn Iterator<Item = ThreadHash>>
)
fn perform_action(
&mut self,
context: &mut Context,
thread_hashes: SmallVec<[ThreadHash; 8]>,
a: &ListingAction
)
[src]
&mut self,
context: &mut Context,
thread_hashes: SmallVec<[ThreadHash; 8]>,
a: &ListingAction
)
fn redraw_envelope_list(
&mut self,
_context: &Context,
_items: Box<dyn Iterator<Item = EnvelopeHash>>
)
[src]
&mut self,
_context: &Context,
_items: Box<dyn Iterator<Item = EnvelopeHash>>
)
Auto Trait Implementations
impl !RefUnwindSafe for ConversationsListing
impl Send for ConversationsListing
impl Sync for ConversationsListing
impl Unpin for ConversationsListing
impl !UnwindSafe for ConversationsListing
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,