[−][src]Enum onc_rpc::ReplyBody
ReplyBody defines the response to an RPC invocation.
Variants
Accepted(AcceptedReply<T, P>)The server accepted the request credentials.
Denied(RejectedReply)The server rejected the request credentials.
Implementations
impl<T, P> ReplyBody<T, P> where
T: AsRef<[u8]>,
P: AsRef<[u8]>, [src]
T: AsRef<[u8]>,
P: AsRef<[u8]>,
pub fn serialise_into(&self, buf: &mut Cursor<Vec<u8>>) -> Result<(), Error>[src]
Serialises this ReplyBody into buf, advancing the cursor position by
serialised_len bytes.
pub fn serialised_len(&self) -> u32[src]
Returns the on-wire length of this ReplyBody once serialised,
including the message header.
Trait Implementations
impl<T: Debug, P: Debug> Debug for ReplyBody<T, P> where
T: AsRef<[u8]>,
P: AsRef<[u8]>, [src]
T: AsRef<[u8]>,
P: AsRef<[u8]>,
impl<T: PartialEq, P: PartialEq> PartialEq<ReplyBody<T, P>> for ReplyBody<T, P> where
T: AsRef<[u8]>,
P: AsRef<[u8]>, [src]
T: AsRef<[u8]>,
P: AsRef<[u8]>,
pub fn eq(&self, other: &ReplyBody<T, P>) -> bool[src]
pub fn ne(&self, other: &ReplyBody<T, P>) -> bool[src]
impl<T, P> StructuralPartialEq for ReplyBody<T, P> where
T: AsRef<[u8]>,
P: AsRef<[u8]>, [src]
T: AsRef<[u8]>,
P: AsRef<[u8]>,
impl<'a> TryFrom<&'a [u8]> for ReplyBody<&'a [u8], &'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 ReplyBody<Bytes, Bytes>[src]
Auto Trait Implementations
impl<T, P> RefUnwindSafe for ReplyBody<T, P> where
P: RefUnwindSafe,
T: RefUnwindSafe, [src]
P: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, P> Send for ReplyBody<T, P> where
P: Send,
T: Send, [src]
P: Send,
T: Send,
impl<T, P> Sync for ReplyBody<T, P> where
P: Sync,
T: Sync, [src]
P: Sync,
T: Sync,
impl<T, P> Unpin for ReplyBody<T, P> where
P: Unpin,
T: Unpin, [src]
P: Unpin,
T: Unpin,
impl<T, P> UnwindSafe for ReplyBody<T, P> where
P: UnwindSafe,
T: UnwindSafe, [src]
P: UnwindSafe,
T: 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>,