[−][src]Function sphinxcrypto::commands::commands_to_vec
pub fn commands_to_vec(
commands: &Vec<RoutingCommand>,
is_terminal: bool
) -> Result<Vec<u8>, &'static str>
The commands_to_vec function is used to serialize a vector of routing commands, however it is considered an error to supply such a vector of commands with a NextHop command.