Struct onc_rpc::CallBody[][src]

pub struct CallBody<T, P> where
    T: AsRef<[u8]>, 
{ /* fields omitted */ }
Expand description

A request invoking an RPC.

This structure is the Rust equivilent of the call_body structure defined in the RFC. The rpcvers field (representing the RPC protocol version) is hard coded to 2.

Implementations

Construct a new RPC invocation request.

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

Returns the on-wire length of this call body once serialised.

Returns the RPC version of this request.

This crate supports the ONC RPC version 2 only.

Returns the program identifier in this request.

The version of the program to be invoked.

The program procedure number identifying the RPC to invoke.

The credentials to use for authenticating the request.

The verifier that should be used to validate the authentication credentials.

The RFC says the following about the verifier:

The purpose of the authentication verifier is to validate the
authentication credential.  Note that these two items are
historically separate, but are always used together as one logical
entity.

Returns a reference to the opaque message payload bytes.

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.