Enum onc_rpc::AcceptedStatus
source · pub enum AcceptedStatus<P>{
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.
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.
Fields
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§
source§impl<P> AcceptedStatus<P>
impl<P> AcceptedStatus<P>
sourcepub fn serialise_into<W: Write>(&self, buf: W) -> Result<(), Error>
pub fn serialise_into<W: Write>(&self, buf: W) -> Result<(), Error>
Serialises this AcceptedStatus
into buf
, advancing the cursor
position by AcceptedStatus::serialised_len()
bytes.
sourcepub fn serialised_len(&self) -> u32
pub fn serialised_len(&self) -> u32
Returns the on-wire length of this type once serialised.
Trait Implementations§
source§impl<P> Clone for AcceptedStatus<P>
impl<P> Clone for AcceptedStatus<P>
source§fn clone(&self) -> AcceptedStatus<P>
fn clone(&self) -> AcceptedStatus<P>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<P> Debug for AcceptedStatus<P>
impl<P> Debug for AcceptedStatus<P>
source§impl<P> PartialEq for AcceptedStatus<P>
impl<P> PartialEq for AcceptedStatus<P>
source§fn eq(&self, other: &AcceptedStatus<P>) -> bool
fn eq(&self, other: &AcceptedStatus<P>) -> bool
self
and other
values to be equal, and is used
by ==
.