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. 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.
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
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HandoffKind
impl Debug for HandoffKind
Source§impl Default for HandoffKind
impl Default for HandoffKind
Source§fn default() -> HandoffKind
fn default() -> HandoffKind
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HandoffKind
impl<'de> Deserialize<'de> for HandoffKind
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<HandoffKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<HandoffKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for HandoffKind
Source§impl PartialEq for HandoffKind
impl PartialEq for HandoffKind
Source§impl Serialize for HandoffKind
impl Serialize for HandoffKind
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for HandoffKind
Auto Trait Implementations§
impl Freeze for HandoffKind
impl RefUnwindSafe for HandoffKind
impl Send for HandoffKind
impl Sync for HandoffKind
impl Unpin for HandoffKind
impl UnsafeUnpin for HandoffKind
impl UnwindSafe for HandoffKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more