pub enum PutResponse {
Inserted(Id),
Buried(Id),
ExpectedCrlf,
JobTooBig,
Draining,
}Variants§
Inserted(Id)
Indicates success, id is the integer id of the new job.
Buried(Id)
The server ran out of memory trying to grow the priority queue data structure.
id is the integer id of the new job.
ExpectedCrlf
The job body must be followed by a CR-LF pair, that is, “\r\n”. These two bytes are not counted in the job size given by the client in the put command line.
JobTooBig
The client has requested to put a job with a body larger than max-job-size bytes.
Draining
This means that the server has been put into “drain mode” and is no longer accepting new jobs. The client should try another server or disconnect and try again later. To put the server in drain mode, send the SIGUSR1 signal to the process.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PutResponse
impl RefUnwindSafe for PutResponse
impl Send for PutResponse
impl Sync for PutResponse
impl Unpin for PutResponse
impl UnwindSafe for PutResponse
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