Skip to main content

gate

Function gate 

Source
pub fn gate(
    cx: &ExportCx,
    exporter: &dyn Exporter,
    part: Option<&Disclosure>,
    shipped: &Shipped,
) -> Result<(), (Code, String)>
Expand description

Writes the report of what shipped holds, and refuses the export with what part finds there: on a refusal, or a package that can’t be read, no package is left. The error is the problem code and the message.