#[non_exhaustive]pub struct Pending {
pub job: String,
pub estimate_seconds: u64,
pub poll: String,
pub request: Request,
}Expand description
A pending envelope (5.5, spec-0.4.1): the job, an estimate, the URL to poll and the
original request echoed. Build one with Pending::new (a mesh), or get one from
check_envelope_any (a client).
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.job: StringThe job id: 32 to 64 lowercase hex digits, a capability.
estimate_seconds: u64The mesh’s estimate of the seconds until the result is ready; a hint.
poll: StringThe job’s URL: https:// and printable ASCII, at most 512 characters, ending
/jobs/<job>.
request: RequestThe original request, echoed: its cell_id and asof (never a job).
Implementations§
Source§impl Pending
impl Pending
Sourcepub fn new(
job: &str,
estimate_seconds: u64,
poll: &str,
request: Request,
) -> Result<Pending>
pub fn new( job: &str, estimate_seconds: u64, poll: &str, request: Request, ) -> Result<Pending>
A pending envelope answering request (its cell_id and asof are echoed; a job
in it is not), checked by the rules of 5.5: job 32 to 64 lowercase hex digits,
estimate_seconds at most 2^53 - 1, poll an https:// URL of printable ASCII of at
most 512 characters whose host (up to the first /) is a DNS name (2.1), ending
/jobs/<job>. That poll names the mesh’s own host is the caller’s to ensure. A failure is E_ENVELOPE, at the member’s
path.