[][src]Struct meli::components::mail::listing::plain::PlainListing

pub struct PlainListing {
    cursor_pos: (AccountHash, MailboxHash, usize),
    new_cursor_pos: (AccountHash, MailboxHash, usize),
    length: usize,
    sort: (SortField, SortOrder),
    subsort: (SortField, SortOrder),
    all_envelopes: HashSet<EnvelopeHash>,
    order: HashMap<EnvelopeHash, usize>,
    data_columns: DataColumns,
    search_job: Option<(String, JoinHandle<Result<SmallVec<[EnvelopeHash; 512]>>>)>,
    filter_term: String,
    filtered_selection: Vec<EnvelopeHash>,
    filtered_order: HashMap<EnvelopeHash, usize>,
    selection: HashMap<EnvelopeHash, bool>,
    _selection: HashMap<ThreadHash, bool>,
    thread_node_hashes: HashMap<EnvelopeHash, ThreadNodeHash>,
    local_collection: Vec<EnvelopeHash>,
    dirty: bool,
    force_draw: bool,
    unfocused: bool,
    view: MailView,
    row_updates: SmallVec<[EnvelopeHash; 8]>,
    _row_updates: SmallVec<[ThreadHash; 8]>,
    color_cache: ColorCache,
    active_jobs: HashMap<JobId, JoinHandle<Result<()>>>,
    movement: Option<PageMovement>,
    id: ComponentId,
}

A list of all mail (Envelopes) in a Mailbox. On \n it opens the Envelope content in a MailView.

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_envelopes: HashSet<EnvelopeHash>order: HashMap<EnvelopeHash, usize>data_columns: DataColumns

Cache current view.

search_job: Option<(String, JoinHandle<Result<SmallVec<[EnvelopeHash; 512]>>>)>filter_term: Stringfiltered_selection: Vec<EnvelopeHash>filtered_order: HashMap<EnvelopeHash, usize>selection: HashMap<EnvelopeHash, bool>_selection: HashMap<ThreadHash, bool>thread_node_hashes: HashMap<EnvelopeHash, ThreadNodeHash>local_collection: Vec<EnvelopeHash>dirty: bool

If we must redraw on next redraw event

force_draw: boolunfocused: bool

If self.view exists or not.

view: MailViewrow_updates: SmallVec<[EnvelopeHash; 8]>_row_updates: SmallVec<[ThreadHash; 8]>color_cache: ColorCacheactive_jobs: HashMap<JobId, JoinHandle<Result<()>>>movement: Option<PageMovement>id: ComponentId

Implementations

impl PlainListing[src]

const DESCRIPTION: &'static str[src]

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

fn make_entry_string(
    &self,
    e: EnvelopeRef<'_>,
    context: &Context
) -> EntryStrings
[src]

fn redraw_list(
    &mut self,
    context: &Context,
    iter: Box<dyn Iterator<Item = EnvelopeHash>>
)
[src]

fn get_env_under_cursor(
    &self,
    cursor: usize,
    _context: &Context
) -> EnvelopeHash
[src]

fn format_date(envelope: &Envelope) -> String[src]

fn perform_action(
    &mut self,
    context: &mut Context,
    env_hash: EnvelopeHash,
    a: &ListingAction
)
[src]

Trait Implementations

impl Component for PlainListing[src]

impl Debug for PlainListing[src]

impl Display for PlainListing[src]

impl ListingTrait for PlainListing[src]

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

Draw the list of Envelopes.

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

impl Send for PlainListing

impl Sync for PlainListing

impl Unpin for PlainListing

impl !UnwindSafe for PlainListing

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]