Enum onc_rpc::RejectedReply[][src]

pub enum RejectedReply {
    RpcVersionMismatch {
        low: u32,
        high: u32,
    },
    AuthError(AuthError),
}
Expand description

The response type for a rejected RPC invocation.

Variants

RpcVersionMismatch

The RPC version was not serviceable.

Only RPC version 2 is supported.

Show fields

Fields of RpcVersionMismatch

low: u32

The lowest supported version.

high: u32

The highest supported version.

AuthError(AuthError)

The authentication credentials included in the request (if any) were rejected.

Implementations

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

Returns the on-wire length of this reply body 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.