Skip to main content

Fn

Function Fn 

Source
pub fn Fn(
    AddressString: &str,
    ServerName: &str,
) -> Result<SocketAddr, VineError>
Expand description

Parses and validates AddressString for use as a Vine gRPC bind address.

§Parameters

  • AddressString - the address string to validate (e.g. "[::1]:50051").
  • ServerName - human-readable name of the server, used in error messages and the privileged-port warning (e.g. "MountainService").

§Errors

Returns VineError::InvalidMessageFormat for empty or oversize strings, VineError::AddressParseError for malformed addresses.