[−][src]Enum onc_rpc::AcceptedStatus
The response status code for a request that contains valid credentials.
Variants
The RPC was successful, and the response payload is contained in the variant.
The specified program identifier has no handler in this server.
This is PROG_UNAVAIL
in the spec.
The program to invoke was found, but it doesn't support the requested version.
This is PROG_MISMATCH
in the spec.
Fields of ProgramMismatch
The program to invoke was found, but the procedure number is not recognised.
This is PROC_UNAVAIL
in the spec.
The arguments provided to the RPC endpoint were not serialised correctly, or otherwise unacceptable.
This is GARBAGE_ARGS
in the spec.
The server experienced an internal error.
This is SYSTEM_ERR
in the spec.
Implementations
impl<P> AcceptedStatus<P> where
P: AsRef<[u8]>,
[src]
P: AsRef<[u8]>,
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]
P: AsRef<[u8]>,
impl<P: PartialEq> PartialEq<AcceptedStatus<P>> for AcceptedStatus<P> where
P: AsRef<[u8]>,
[src]
P: AsRef<[u8]>,
pub fn eq(&self, other: &AcceptedStatus<P>) -> bool
[src]
pub fn ne(&self, other: &AcceptedStatus<P>) -> bool
[src]
impl<P> StructuralPartialEq for AcceptedStatus<P> where
P: AsRef<[u8]>,
[src]
P: AsRef<[u8]>,
impl<'a> TryFrom<&'a [u8]> for AcceptedStatus<&'a [u8]>
[src]
type Error = Error
The type returned in the event of a conversion error.
pub fn try_from(v: &'a [u8]) -> Result<Self, Self::Error>
[src]
impl TryFrom<Bytes> for AcceptedStatus<Bytes>
[src]
Auto Trait Implementations
impl<P> RefUnwindSafe for AcceptedStatus<P> where
P: RefUnwindSafe,
[src]
P: RefUnwindSafe,
impl<P> Send for AcceptedStatus<P> where
P: Send,
[src]
P: Send,
impl<P> Sync for AcceptedStatus<P> where
P: Sync,
[src]
P: Sync,
impl<P> Unpin for AcceptedStatus<P> where
P: Unpin,
[src]
P: Unpin,
impl<P> UnwindSafe for AcceptedStatus<P> where
P: UnwindSafe,
[src]
P: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,