Enum onc_rpc::RejectedReply
source · pub enum RejectedReply {
RpcVersionMismatch {
low: u32,
high: u32,
},
AuthError(AuthError),
}
Expand description
The response type for a rejected RPC invocation.
Variants§
RpcVersionMismatch
The RPC version was not serviceable.
Only RPC version 2 is supported.
AuthError(AuthError)
The authentication credentials included in the request (if any) were rejected.
Implementations§
source§impl RejectedReply
impl RejectedReply
sourcepub fn serialise_into<W: Write>(&self, buf: W) -> Result<(), Error>
pub fn serialise_into<W: Write>(&self, buf: W) -> Result<(), Error>
Serialises this RejectedReply
into buf
, advancing the cursor
position by RejectedReply::serialised_len()
bytes.
sourcepub fn serialised_len(&self) -> u32
pub fn serialised_len(&self) -> u32
Returns the on-wire length of this reply body once serialised.
Trait Implementations§
source§impl Debug for RejectedReply
impl Debug for RejectedReply
source§impl PartialEq for RejectedReply
impl PartialEq for RejectedReply
source§fn eq(&self, other: &RejectedReply) -> bool
fn eq(&self, other: &RejectedReply) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<&[u8]> for RejectedReply
impl TryFrom<&[u8]> for RejectedReply
source§impl TryFrom<Bytes> for RejectedReply
impl TryFrom<Bytes> for RejectedReply
impl StructuralPartialEq for RejectedReply
Auto Trait Implementations§
impl Freeze for RejectedReply
impl RefUnwindSafe for RejectedReply
impl Send for RejectedReply
impl Sync for RejectedReply
impl Unpin for RejectedReply
impl UnwindSafe for RejectedReply
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