[][src]Struct meli::components::mail::listing::conversations::ConversationsListing

pub struct ConversationsListing {
    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>,
    content: CellBuffer,
    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,
    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>content: CellBuffer

Cache current view.

search_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 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]

pub(super) fn format_date(
    context: &Context,
    epoch: UnixTimestamp
) -> String
[src]

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]

impl Debug for ConversationsListing[src]

impl Display for ConversationsListing[src]

impl ListingTrait for ConversationsListing[src]

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

Draw the list of Envelopes.

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.

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]

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]