pub enum HandoffKind {
Planned,
Seizure {
by: EntityRef,
},
}Expand description
How custody changed hands between two legs.
Variants§
Planned
A custody transfer the itinerary planned for.
Seizure
Custody taken by an entity outside the itinerary. Transport records the
seizing identity; the incident, hostility, and authority behind it stay
application systems. Unless it is terminal (below), a seizure follows
the same leg rules as a planned handoff: it is recorded after the
source leg arrived or failed, into a startable leg (typically the first
leg of a replacement revision), and to_custodian remains the
application’s custody label.
A seizure may instead end the itinerary’s custody. Such a terminal
seizure names the failed current leg of a non-terminal execution’s
active itinerary as both from_leg and to_leg. It is recorded no
earlier than that leg failed and only if no other handoff left it, and
at most once per execution. Afterwards the execution records no
handoff and cannot fail or reroute a leg, arrive, settle successfully,
or book capacity (see TransportExecution::custody_left_itinerary); its
owner closes it as failed or cancelled.
Implementations§
Source§impl HandoffKind
impl HandoffKind
pub const fn is_planned(&self) -> bool
Trait Implementations§
Source§impl Clone for HandoffKind
impl Clone for HandoffKind
Source§fn clone(&self) -> HandoffKind
fn clone(&self) -> HandoffKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more