Struct wasmcloud_control_interface::CtlResponse
source · #[non_exhaustive]pub struct CtlResponse<T> { /* private fields */ }
Expand description
A control interface response that wraps a response payload, a success flag, and a message with additional context if necessary.
Implementations§
source§impl<T> CtlResponse<T>
impl<T> CtlResponse<T>
sourcepub fn ok(response: T) -> Self
pub fn ok(response: T) -> Self
Create a CtlResponse
with provided response data
Trait Implementations§
source§impl<T: Clone> Clone for CtlResponse<T>
impl<T: Clone> Clone for CtlResponse<T>
source§fn clone(&self) -> CtlResponse<T>
fn clone(&self) -> CtlResponse<T>
Returns a copy 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<T: Debug> Debug for CtlResponse<T>
impl<T: Debug> Debug for CtlResponse<T>
source§impl<'de, T> Deserialize<'de> for CtlResponse<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for CtlResponse<T>where
T: Deserialize<'de>,
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
Auto Trait Implementations§
impl<T> Freeze for CtlResponse<T>where
T: Freeze,
impl<T> RefUnwindSafe for CtlResponse<T>where
T: RefUnwindSafe,
impl<T> Send for CtlResponse<T>where
T: Send,
impl<T> Sync for CtlResponse<T>where
T: Sync,
impl<T> Unpin for CtlResponse<T>where
T: Unpin,
impl<T> UnwindSafe for CtlResponse<T>where
T: 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)