pub struct ChannelWrite { /* private fields */ }Expand description
A Runnable that writes values to channels.
When invoked, replaces PASSTHROUGH sentinels with the actual input,
then calls config[CONFIG_KEY_SEND] to buffer the writes.
Implementations§
Source§impl ChannelWrite
impl ChannelWrite
pub fn new(entries: Vec<ChannelWriteEntry>) -> Self
Trait Implementations§
Source§impl Runnable for ChannelWrite
impl Runnable for ChannelWrite
Source§fn invoke(
&self,
input: &JsonValue,
config: &RunnableConfig,
) -> Result<JsonValue, RunnableError>
fn invoke( &self, input: &JsonValue, config: &RunnableConfig, ) -> Result<JsonValue, RunnableError>
Execute synchronously.
Source§fn ainvoke<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
input: &'life1 JsonValue,
config: &'life2 RunnableConfig,
) -> Pin<Box<dyn Future<Output = Result<JsonValue, RunnableError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn ainvoke<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
input: &'life1 JsonValue,
config: &'life2 RunnableConfig,
) -> Pin<Box<dyn Future<Output = Result<JsonValue, RunnableError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Execute asynchronously.
Auto Trait Implementations§
impl Freeze for ChannelWrite
impl RefUnwindSafe for ChannelWrite
impl Send for ChannelWrite
impl Sync for ChannelWrite
impl Unpin for ChannelWrite
impl UnsafeUnpin for ChannelWrite
impl UnwindSafe for ChannelWrite
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