Struct onc_rpc::CallBody [−][src]
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
pub fn new(
program: u32,
program_version: u32,
procedure: u32,
auth_credentials: AuthFlavor<T>,
auth_verifier: AuthFlavor<T>,
payload: P
) -> Self
pub fn new(
program: u32,
program_version: u32,
procedure: u32,
auth_credentials: AuthFlavor<T>,
auth_verifier: AuthFlavor<T>,
payload: P
) -> Self
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.
The version of the program to be invoked.
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.
Trait Implementations
Auto Trait Implementations
impl<T, P> RefUnwindSafe for CallBody<T, P> where
P: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, P> UnwindSafe for CallBody<T, P> where
P: UnwindSafe,
T: UnwindSafe,