Skip to main content

parse_direction

Function parse_direction 

Source
pub fn parse_direction(
    direction: Option<&str>,
) -> Result<ContextDirection, Box<dyn Error>>
Expand description

Parse the operator’s --direction value, defaulting to the historical “who may act in this context” reading and refusing anything else with the valid set — the same table the wire uses, so flag and payload cannot drift.