Struct onc_rpc::AcceptedReply
source · pub struct AcceptedReply<T, P>{ /* private fields */ }
Expand description
A type sent in response to a request that contains credentials accepted by the server.
Implementations§
source§impl<T, P> AcceptedReply<T, P>
impl<T, P> AcceptedReply<T, P>
sourcepub fn new(auth_verifier: AuthFlavor<T>, status: AcceptedStatus<P>) -> Self
pub fn new(auth_verifier: AuthFlavor<T>, status: AcceptedStatus<P>) -> Self
Constructs a new AcceptedReply
with the specified AcceptedStatus
.
sourcepub fn serialise_into<W: Write>(&self, buf: W) -> Result<(), Error>
pub fn serialise_into<W: Write>(&self, buf: W) -> Result<(), Error>
Serialises this AcceptedReply
into buf
, advancing the cursor
position by AcceptedReply::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.
sourcepub fn auth_verifier(&self) -> &AuthFlavor<T>
pub fn auth_verifier(&self) -> &AuthFlavor<T>
Returns the auth verifier for use by the client to validate the server.
sourcepub fn status(&self) -> &AcceptedStatus<P>
pub fn status(&self) -> &AcceptedStatus<P>
Returns the status code of the response.
Trait Implementations§
source§impl<T, P> Debug for AcceptedReply<T, P>
impl<T, P> Debug for AcceptedReply<T, P>
source§impl<T, P> PartialEq for AcceptedReply<T, P>
impl<T, P> PartialEq for AcceptedReply<T, P>
source§fn eq(&self, other: &AcceptedReply<T, P>) -> bool
fn eq(&self, other: &AcceptedReply<T, P>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T, P> StructuralPartialEq for AcceptedReply<T, P>
Auto Trait Implementations§
impl<T, P> Freeze for AcceptedReply<T, P>
impl<T, P> RefUnwindSafe for AcceptedReply<T, P>where
T: RefUnwindSafe,
P: RefUnwindSafe,
impl<T, P> Send for AcceptedReply<T, P>
impl<T, P> Sync for AcceptedReply<T, P>
impl<T, P> Unpin for AcceptedReply<T, P>
impl<T, P> UnwindSafe for AcceptedReply<T, P>where
T: UnwindSafe,
P: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more