pub fn echo(
out: &mut dyn Write,
endpoint: &Endpoint,
args: &TopicStreamArgs,
) -> Result<StreamReport, CliError>Expand description
astrs topic echo: prints every message on a port as it arrives.
Runs until the coordinator closes the connection (the cluster went
down), TopicStreamArgs::count frames have been printed, or the
process is interrupted — at which point the subscription is closed
explicitly (in the latter two cases) — the same shape as astrs logs -f — before this returns.
§Errors
CliError::BadArgumentfor an unparsablenode/output.CliError::Refusedwhen the dataflow’s manifest never setdebug: true.- As
Client::connect/Client::requestotherwise.