pub struct CapabilityResponse {
pub accepted: bool,
pub payload: Vec<u8>,
pub provider_core_id: Option<CoreId>,
pub message: Option<String>,
}Expand description
Transport-neutral result of a capability invocation.
Fields§
§accepted: boolWhether the provider accepted and completed the request.
payload: Vec<u8>Opaque application-owned response payload.
provider_core_id: Option<CoreId>Core that handled the request, when known.
message: Option<String>Controlled rejection or informational message.
Implementations§
Trait Implementations§
Source§impl Clone for CapabilityResponse
impl Clone for CapabilityResponse
Source§fn clone(&self) -> CapabilityResponse
fn clone(&self) -> CapabilityResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CapabilityResponse
impl Debug for CapabilityResponse
Source§impl<'de> Deserialize<'de> for CapabilityResponse
impl<'de> Deserialize<'de> for CapabilityResponse
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
impl Eq for CapabilityResponse
Source§impl PartialEq for CapabilityResponse
impl PartialEq for CapabilityResponse
Source§impl Serialize for CapabilityResponse
impl Serialize for CapabilityResponse
impl StructuralPartialEq for CapabilityResponse
Auto Trait Implementations§
impl Freeze for CapabilityResponse
impl RefUnwindSafe for CapabilityResponse
impl Send for CapabilityResponse
impl Sync for CapabilityResponse
impl Unpin for CapabilityResponse
impl UnsafeUnpin for CapabilityResponse
impl UnwindSafe for CapabilityResponse
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