pub struct InboxRequest {
pub since_unix_ms: Option<u64>,
pub limit: u16,
pub wait_secs: Option<u16>,
}Expand description
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§impl Debug for InboxRequest
impl Debug for InboxRequest
Source§impl<'de> Deserialize<'de> for InboxRequest
impl<'de> Deserialize<'de> for InboxRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for InboxRequest
Source§impl PartialEq for InboxRequest
impl PartialEq for InboxRequest
Source§impl Serialize for InboxRequest
impl Serialize for InboxRequest
impl StructuralPartialEq for InboxRequest
Auto Trait Implementations§
impl Freeze for InboxRequest
impl RefUnwindSafe for InboxRequest
impl Send for InboxRequest
impl Sync for InboxRequest
impl Unpin for InboxRequest
impl UnsafeUnpin for InboxRequest
impl UnwindSafe for InboxRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more