PutResponse

Enum PutResponse 

Source
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§

Source§

impl Debug for PutResponse

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.