pub struct Request { /* private fields */ }Expand description
What the client asked for, for the binding of 5.5 step 5.
Implementations§
Source§impl Request
impl Request
Sourcepub fn new(cell_id: &str, asof: Option<&str>) -> Result<Request, InvalidRequest>
pub fn new(cell_id: &str, asof: Option<&str>) -> Result<Request, InvalidRequest>
A request for the cell with id cell_id (64 lowercase hex digits) as of asof (an
instant) or now. Anything else is InvalidRequest: SPEC 5.5 makes a malformed
request the caller’s error, reported outside the E_* codes.
Sourcepub fn with_job(
cell_id: &str,
asof: Option<&str>,
job: &str,
) -> Result<Request, InvalidRequest>
pub fn with_job( cell_id: &str, asof: Option<&str>, job: &str, ) -> Result<Request, InvalidRequest>
The request description for GET of a job’s poll URL (5.5, spec-0.4.1): the
original request (cell_id, asof) and the job polled, 32 to 64 lowercase hex digits
(otherwise InvalidRequest). With it, an envelope may be bad_request with
E_JOB_UNKNOWN, and a pending one must carry this job; any other answer is bound
to the original request, as a /cell answer is.
Sourcepub fn job(&self) -> Option<&str>
pub fn job(&self) -> Option<&str>
The job polled, for a request made at a job URL (Request::with_job).
Trait Implementations§
impl Eq for Request
impl StructuralPartialEq for Request
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
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