[][src]Struct meli::components::mail::listing::CompactListing

pub struct CompactListing {
    cursor_pos: (AccountHash, MailboxHash, usize),
    new_cursor_pos: (AccountHash, MailboxHash, usize),
    length: usize,
    sort: (SortField, SortOrder),
    subsort: (SortField, SortOrder),
    all_threads: HashSet<ThreadHash>,
    order: HashMap<ThreadHash, usize>,
    data_columns: DataColumns,
    rows_drawn: SegmentTree,
    rows: Vec<((usize, (ThreadHash, EnvelopeHash)), EntryStrings)>,
    search_job: Option<(String, JoinHandle<Result<SmallVec<[EnvelopeHash; 512]>>>)>,
    select_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,
    force_draw: bool,
    unfocused: bool,
    view: ThreadView,
    row_updates: SmallVec<[ThreadHash; 8]>,
    color_cache: ColorCache,
    movement: Option<PageMovement>,
    modifier_active: bool,
    modifier_command: Option<Modifier>,
    id: ComponentId,
}

A list of all mail (Envelopes) 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: usizesort: (SortField, SortOrder)subsort: (SortField, SortOrder)all_threads: HashSet<ThreadHash>order: HashMap<ThreadHash, usize>data_columns: DataColumns

Cache current view.

rows_drawn: SegmentTreerows: Vec<((usize, (ThreadHash, EnvelopeHash)), EntryStrings)>search_job: Option<(String, JoinHandle<Result<SmallVec<[EnvelopeHash; 512]>>>)>select_job: Option<(String, JoinHandle<Result<SmallVec<[EnvelopeHash; 512]>>>)>filter_term: Stringfiltered_selection: Vec<ThreadHash>filtered_order: HashMap<ThreadHash, usize>selection: HashMap<ThreadHash, bool>dirty: bool

If we must redraw on next redraw event

force_draw: boolunfocused: bool

If self.view exists or not.

view: ThreadViewrow_updates: SmallVec<[ThreadHash; 8]>color_cache: ColorCachemovement: Option<PageMovement>modifier_active: boolmodifier_command: Option<Modifier>id: ComponentId

Implementations

impl CompactListing[src]

pub const DESCRIPTION: &'static str[src]

pub fn new(coordinates: (AccountHash, MailboxHash)) -> Self[src]

fn make_entry_string(
    &self,
    e: &Envelope,
    context: &Context,
    threads: &Threads,
    hash: ThreadHash
) -> EntryStrings
[src]

fn get_thread_under_cursor(&self, cursor: usize) -> ThreadHash[src]

fn update_line(&mut self, context: &Context, thread_hash: ThreadHash)[src]

fn draw_rows(&mut self, context: &Context, start: usize, end: usize)[src]

fn select(
    &mut self,
    search_term: &str,
    results: Result<SmallVec<[EnvelopeHash; 512]>>,
    context: &mut Context
)
[src]

Trait Implementations

impl Component for CompactListing[src]

impl Debug for CompactListing[src]

impl Display for CompactListing[src]

impl ListingTrait for CompactListing[src]

fn draw_list(
    &mut self,
    grid: &mut CellBuffer,
    area: Area,
    context: &mut Context
)
[src]

Draw the list of Envelopes.

impl MailListingTrait for CompactListing[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.

Auto Trait Implementations

impl !RefUnwindSafe for CompactListing

impl Send for CompactListing

impl Sync for CompactListing

impl Unpin for CompactListing

impl !UnwindSafe for CompactListing

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]