pub enum QueuePayload {
Function {
args: Vec<u8>,
fn_sig_hash: u64,
},
Fetch {
method: String,
url: String,
headers: HashMap<String, String>,
body: Vec<u8>,
},
}Expand description
The work a queue item represents. Persists in yeti-queue as msgpack
inside the payload column.
Variants§
Function
Dispatch a registered #[queue_fn] in the owning wasm app.
Fields
Fetch
Dispatch a cross-node fetch!() call — routes through the existing
host reqwest bridge with the same HttpStats + inflight cap the
synchronous fetch! macro uses.
Trait Implementations§
Source§impl Clone for QueuePayload
impl Clone for QueuePayload
Source§fn clone(&self) -> QueuePayload
fn clone(&self) -> QueuePayload
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 QueuePayload
impl Debug for QueuePayload
Source§impl<'de> Deserialize<'de> for QueuePayload
impl<'de> Deserialize<'de> for QueuePayload
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 Freeze for QueuePayload
impl RefUnwindSafe for QueuePayload
impl Send for QueuePayload
impl Sync for QueuePayload
impl Unpin for QueuePayload
impl UnsafeUnpin for QueuePayload
impl UnwindSafe for QueuePayload
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