RegisterOutputChannel

Function RegisterOutputChannel 

Source
pub fn RegisterOutputChannel(
    Name: String,
    LanguageIdentifier: Option<String>,
) -> ActionEffect<Arc<dyn OutputChannelManager>, CommonError, String>
Expand description

Creates an effect that, when executed, will register a new output channel with the host application.

It uses the OutputChannelManager capability from the environment.

§Parameters

  • Name: The human-readable name of the channel.
  • LanguageIdentifier: An optional language ID for syntax highlighting.

§Returns

An ActionEffect that resolves with a unique String identifier for the newly created channel.