pub struct KernelOpReplyPayload {
pub request_id: u32,
pub success: bool,
pub reason: String,
pub read_values: Vec<KernelOpValue>,
}Expand description
Postcard-encoded payload for MsgType::KernelOpReply.
Mirrors the request id so the guest’s blocking reader can pair
against the original request. Status carries success/failure; on
failure reason describes the host-side error. For
KernelOpDirection::Read requests read_values carries the
per-entry bytes the host coordinator read; empty for writes.
Fields§
§request_id: u32Echo of the request’s request_id.
success: booltrue when the host completed every entry in the batch;
false when any entry failed (reason describes the first
failure).
reason: StringHuman-readable diagnostic on the failure path; empty on success.
read_values: Vec<KernelOpValue>For a KernelOpDirection::Read request: one
KernelOpValue per request entry in iteration order. Empty
for writes.
Trait Implementations§
Source§impl Clone for KernelOpReplyPayload
impl Clone for KernelOpReplyPayload
Source§fn clone(&self) -> KernelOpReplyPayload
fn clone(&self) -> KernelOpReplyPayload
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KernelOpReplyPayload
impl Debug for KernelOpReplyPayload
Source§impl<'de> Deserialize<'de> for KernelOpReplyPayload
impl<'de> Deserialize<'de> for KernelOpReplyPayload
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for KernelOpReplyPayload
impl PartialEq for KernelOpReplyPayload
Source§impl Serialize for KernelOpReplyPayload
impl Serialize for KernelOpReplyPayload
impl Eq for KernelOpReplyPayload
impl StructuralPartialEq for KernelOpReplyPayload
Auto Trait Implementations§
impl Freeze for KernelOpReplyPayload
impl RefUnwindSafe for KernelOpReplyPayload
impl Send for KernelOpReplyPayload
impl Sync for KernelOpReplyPayload
impl Unpin for KernelOpReplyPayload
impl UnwindSafe for KernelOpReplyPayload
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more