Skip to main content

list_folder

Function list_folder 

Source
pub async fn list_folder<T: AsyncRead + AsyncWrite + Unpin>(
    client: &mut MapClient<T>,
    folder: Folder,
) -> Result<Vec<MessageEntry>>
Expand description

Lists folder, paging at 1024 entries per request and accumulating across pages.

Listing only — no bodies are fetched, so this is cheap relative to fetch_folder and is what the live threads aggregation uses. Pure device read: no store access. Returns entries in device listing order.

§Errors

Returns an error if any MAP set_folder/list_messages operation fails.