pub enum ReplyBody<T, P>{
Accepted(AcceptedReply<T, P>),
Denied(RejectedReply),
}
Expand description
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§
source§impl<T, P> ReplyBody<T, P>
impl<T, P> ReplyBody<T, P>
sourcepub fn serialise_into<W: Write>(&self, buf: W) -> Result<(), Error>
pub fn serialise_into<W: Write>(&self, buf: W) -> Result<(), Error>
Serialises this ReplyBody
into buf
, advancing the cursor position by
ReplyBody::serialised_len()
bytes.
sourcepub fn serialised_len(&self) -> u32
pub fn serialised_len(&self) -> u32
Returns the on-wire length of this ReplyBody
once serialised,
including the message header.
Trait Implementations§
source§impl<T, P> PartialEq for ReplyBody<T, P>
impl<T, P> PartialEq for ReplyBody<T, P>
impl<T, P> StructuralPartialEq for ReplyBody<T, P>
Auto Trait Implementations§
impl<T, P> Freeze for ReplyBody<T, P>
impl<T, P> RefUnwindSafe for ReplyBody<T, P>where
T: RefUnwindSafe,
P: RefUnwindSafe,
impl<T, P> Send for ReplyBody<T, P>
impl<T, P> Sync for ReplyBody<T, P>
impl<T, P> Unpin for ReplyBody<T, P>
impl<T, P> UnwindSafe for ReplyBody<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