[][src]Trait meli::components::mail::listing::MailListingTrait

pub trait MailListingTrait: ListingTrait {
    fn row_updates(&mut self) -> &mut SmallVec<[ThreadHash; 8]>;
fn selection(&mut self) -> &mut HashMap<ThreadHash, bool>;
fn get_focused_items(&self, _context: &Context) -> SmallVec<[ThreadHash; 8]>;
fn redraw_threads_list(
        &mut self,
        context: &Context,
        items: Box<dyn Iterator<Item = ThreadHash>>
    );
fn refresh_mailbox(&mut self, context: &mut Context, force: bool); fn perform_action(
        &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>>
    ) { ... } }

Required methods

fn row_updates(&mut self) -> &mut SmallVec<[ThreadHash; 8]>

fn selection(&mut self) -> &mut HashMap<ThreadHash, bool>

fn get_focused_items(&self, _context: &Context) -> SmallVec<[ThreadHash; 8]>

fn redraw_threads_list(
    &mut self,
    context: &Context,
    items: Box<dyn Iterator<Item = ThreadHash>>
)

fn refresh_mailbox(&mut self, context: &mut Context, force: bool)

Use force when there have been changes in the mailbox or account lists in context

Loading content...

Provided methods

fn perform_action(
    &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>>
)

Loading content...

Implementors

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.

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

impl MailListingTrait for OfflineListing[src]

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.

impl MailListingTrait for ThreadListing[src]

fn refresh_mailbox(&mut self, context: &mut Context, _force: bool)[src]

Fill the self.content CellBuffer with the contents of the account mailbox the user has chosen.

Loading content...