ReplaceOutputChannelContent

Function ReplaceOutputChannelContent 

Source
pub fn ReplaceOutputChannelContent(
    ChannelIdentifier: String,
    Value: String,
) -> ActionEffect<Arc<dyn OutputChannelManager>, CommonError, ()>
Expand description

Creates an effect that, when executed, will replace the entire buffer of the specified output channel with a new string.

It uses the OutputChannelManager capability from the environment.

§Parameters

  • ChannelIdentifier: The unique ID of the target channel.
  • Value: The new string content for the channel.

§Returns

An ActionEffect that resolves to () on success.