[][src]Enum onc_rpc::AcceptedStatus

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

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.

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

impl<P> AcceptedStatus<P> where
    P: AsRef<[u8]>, 
[src]

pub fn serialise_into(&self, buf: &mut Cursor<Vec<u8>>) -> Result<(), Error>[src]

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

pub fn serialised_len(&self) -> u32[src]

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

Trait Implementations

impl<P: Debug> Debug for AcceptedStatus<P> where
    P: AsRef<[u8]>, 
[src]

impl<P: PartialEq> PartialEq<AcceptedStatus<P>> for AcceptedStatus<P> where
    P: AsRef<[u8]>, 
[src]

impl<P> StructuralPartialEq for AcceptedStatus<P> where
    P: AsRef<[u8]>, 
[src]

impl<'a> TryFrom<&'a [u8]> for AcceptedStatus<&'a [u8]>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Bytes> for AcceptedStatus<Bytes>[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<P> RefUnwindSafe for AcceptedStatus<P> where
    P: RefUnwindSafe
[src]

impl<P> Send for AcceptedStatus<P> where
    P: Send
[src]

impl<P> Sync for AcceptedStatus<P> where
    P: Sync
[src]

impl<P> Unpin for AcceptedStatus<P> where
    P: Unpin
[src]

impl<P> UnwindSafe for AcceptedStatus<P> where
    P: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.