DisconnectFromSideCar

Function DisconnectFromSideCar 

Source
pub fn DisconnectFromSideCar(SideCarIdentifier: String) -> Result<(), VineError>
Expand description

Disconnects from a sidecar process and removes it from the connection pool.

This function removes the sidecar from both the connection pool and connection metadata tracking.

§Parameters

  • SideCarIdentifier: Unique identifier of the sidecar to disconnect

§Returns

  • Ok(()): Disconnection successful
  • Err(VineError): Sidecar was not connected

§Example

DisconnectFromSideCar("cocoon-main".to_string())?;