[][src]Enum onc_rpc::RejectedReply

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

The response type for a rejected RPC invocation.

Variants

RpcVersionMismatch

The RPC version was not serviceable.

Only RPC version 2 is supported.

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

impl RejectedReply[src]

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

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

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

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

Trait Implementations

impl Debug for RejectedReply[src]

impl PartialEq<RejectedReply> for RejectedReply[src]

impl StructuralPartialEq for RejectedReply[src]

impl TryFrom<&'_ [u8]> for RejectedReply[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Bytes> for RejectedReply[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

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.