#[non_exhaustive]pub struct Offline {
pub path: Option<PathBuf>,
pub max_messages: usize,
pub max_bytes: usize,
pub max_age: Duration,
}Expand description
The client’s outbox (Config::offline): where
the messages wait until the server answers for them, and how many.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.path: Option<PathBuf>The file they wait in, so that they outlive the application (outside
the browser). It is this client’s alone while it runs; a lock file
beside it (<path>.lock) says so. None keeps them in memory, for the
client’s life.
max_messages: usizeHow many wait at most (100,000), those written and not answered yet
included: past it Client::send waits for
room, and Client::try_send fails with
Error::Full.
max_bytes: usizeHow many bytes of messages wait at most (16 MiB), as
max_messages. A message larger than this fails at once with
Error::Full.
max_age: DurationHow long a message waits to be sent (an hour), unless it says otherwise: one not sent by then is dropped and the application told. Once written it waits for the server’s answer whatever its age.