pub struct MailInboxRequest {
pub since_unix_ms: Option<u64>,
pub limit: u16,
pub wait_secs: Option<u16>,
}Expand description
Re-export common wire types so hosts can use mail4agent_client::*.
Requests a page of the caller’s inbox. limit defaults to
INBOX_LIMIT_DEFAULT when a caller’s JSON omits it, and is bounded by
INBOX_LIMIT_MAX.
Fields§
§since_unix_ms: Option<u64>§limit: u16§wait_secs: Option<u16>Long-polls when a read would otherwise answer an empty page: waits
up to this many seconds for mail to arrive for the caller (or a room
the caller currently belongs to) before answering, rather than
returning empty at once. Clamped to INBOX_WAIT_SECS_MAX –
not refused – when a caller asks for longer; see that
constant’s own doc comment for why. Answers an empty page on
expiry, never an error: waiting and finding nothing is not a
refusal. None (the default when a caller’s JSON omits this field)
keeps today’s behaviour exactly: an empty inbox answers empty at
once, with no wait at all.
Implementations§
Trait Implementations§
Source§impl Clone for InboxRequest
impl Clone for InboxRequest
Source§fn clone(&self) -> InboxRequest
fn clone(&self) -> InboxRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more