wadm_types::bindings::wasmcloud::wadm::handler

Type Alias StatusUpdate

Source
pub type StatusUpdate = StatusUpdate;

Aliased Type§

struct StatusUpdate {
    pub app: String,
    pub status: Status,
}

Fields§

§app: String§status: Status

Trait Implementations

Source§

impl Clone for StatusUpdate

Source§

fn clone(&self) -> StatusUpdate

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for StatusUpdate

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<R> Decode<R> for StatusUpdate
where R: Send + Sync + Index<R> + AsyncRead + Unpin + 'static,

Source§

type Decoder = Decoder<R>

Decoder used to decode value
Source§

type ListDecoder = ListDecoder<<StatusUpdate as Decode<R>>::Decoder, R>

Decoder used to decode lists of value
Source§

impl<'de> Deserialize<'de> for StatusUpdate

Source§

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<W> Encode<W> for StatusUpdate
where W: Send + Sync + Index<W> + AsyncWrite + Unpin + 'static,

Source§

type Encoder = Encoder<W>

Encoder used to encode the value
Source§

fn encode( self, enc: &mut Self::Encoder, dst: &mut BytesMut, ) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<Self>>::Error>

Convenience function for encoding a value
Source§

fn encode_iter_own<I>( items: I, enc: &mut Self::Encoder, dst: &mut BytesMut, ) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<Self>>::Error>
where I: IntoIterator<Item = Self>, <I as IntoIterator>::IntoIter: ExactSizeIterator, T: Index<T> + Send + Sync + 'static,

Encode an iterator of owned values
Source§

fn encode_iter_ref<'a, I>( items: I, enc: &mut Self::Encoder, dst: &mut BytesMut, ) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<&'a Self>>::Error>
where I: IntoIterator<Item = &'a Self>, <I as IntoIterator>::IntoIter: ExactSizeIterator, T: Index<T> + Send + Sync + 'static, Self::Encoder: Encoder<&'a Self>,

Encode an iterator of value references
Source§

fn encode_list_own( items: Vec<Self>, enc: &mut Self::Encoder, dst: &mut BytesMut, ) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<Self>>::Error>
where T: Index<T> + Send + Sync + 'static,

Encode a list of owned values
Source§

fn encode_list_ref<'a>( items: &'a [Self], enc: &mut Self::Encoder, dst: &mut BytesMut, ) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<&'a Self>>::Error>
where T: Index<T> + Send + Sync + 'static, Self::Encoder: Encoder<&'a Self>,

Encode a list of value references
Source§

impl Serialize for StatusUpdate

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more