[][src]Struct onc_rpc::AcceptedReply

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

A type sent in response to a request that contains credentials accepted by the server.

Implementations

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

pub fn new(auth_verifier: AuthFlavor<T>, status: AcceptedStatus<P>) -> Self[src]

Constructs a new AcceptedReply with the specified AcceptedStatus.

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

Serialises this AcceptedReply 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.

pub fn auth_verifier(&self) -> &AuthFlavor<T>[src]

Returns the auth verifier for use by the client to validate the server.

pub fn status(&self) -> &AcceptedStatus<P>[src]

Returns the status code of the response.

Trait Implementations

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

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

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

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

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Bytes> for AcceptedReply<Bytes, Bytes>[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<T, P> RefUnwindSafe for AcceptedReply<T, P> where
    P: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, P> Send for AcceptedReply<T, P> where
    P: Send,
    T: Send

impl<T, P> Sync for AcceptedReply<T, P> where
    P: Sync,
    T: Sync

impl<T, P> Unpin for AcceptedReply<T, P> where
    P: Unpin,
    T: Unpin

impl<T, P> UnwindSafe for AcceptedReply<T, P> where
    P: UnwindSafe,
    T: UnwindSafe

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.