Enum onc_rpc::AcceptedStatus[][src]

pub enum AcceptedStatus<P> where
    P: AsRef<[u8]>, 
{ Success(P), ProgramUnavailable, ProgramMismatch { low: u32, high: u32, }, ProcedureUnavailable, GarbageArgs, SystemError, }
Expand description

The response status code for a request that contains valid credentials.

Variants

Success(P)

The RPC was successful, and the response payload is contained in the variant.

ProgramUnavailable

The specified program identifier has no handler in this server.

This is PROG_UNAVAIL in the spec.

ProgramMismatch

The program to invoke was found, but it doesn’t support the requested version.

This is PROG_MISMATCH in the spec.

Show fields

Fields of ProgramMismatch

low: u32

The lowest supported program version.

high: u32

The highest supported program version.

ProcedureUnavailable

The program to invoke was found, but the procedure number is not recognised.

This is PROC_UNAVAIL in the spec.

GarbageArgs

The arguments provided to the RPC endpoint were not serialised correctly, or otherwise unacceptable.

This is GARBAGE_ARGS in the spec.

SystemError

The server experienced an internal error.

This is SYSTEM_ERR in the spec.

Implementations

Serialises this AcceptedStatus into buf, advancing the cursor position by serialised_len bytes.

Returns the on-wire length of this type once serialised.

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.