Skip to main content

disconnect

Function disconnect 

Source
pub fn disconnect(
    out: &mut dyn Write,
    endpoint: &Endpoint,
    args: &DisconnectArgs,
) -> Result<(), CliError>
Expand description

Disconnects one input edge from a live node — the consumer is told astrs_wire::NodeEvent::InputClosed with astrs_wire::RouteCloseReason::Disconnected, not treated as a producer failure.

§Errors

CliError::BadArgument if node_id/input are not usable. As Client::resolve and Client::request_ok otherwise.