pub struct BodyEvent {
pub kind: EventKind,
pub sample: BodySample,
pub after: Option<BodySample>,
}Expand description
An event during a separated body’s descent, with the body at that instant.
Fields§
§kind: EventKindWhat happened: a device’s crate::EventKind::Trigger, crate::EventKind::Deployment,
crate::EventKind::Release, the body’s crate::EventKind::Apogee or
crate::EventKind::GroundHit, or a piece leaving it at a
crate::EventKind::Separation or crate::EventKind::Ejection, whose sample has the
body’s mass from before the piece left.
sample: BodySampleThe body at that instant.
after: Option<BodySample>For a piece leaving it, the body just after: its mass without the piece, and its velocity
once the ejections’ impulses have pushed it (crate::Ejection::with_impulse). Partings
at one instant share it: it is the body after all of them. None for every other event.
Trait Implementations§
impl Copy for BodyEvent
Source§impl<'de> Deserialize<'de> for BodyEvent
impl<'de> Deserialize<'de> for BodyEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for BodyEvent
Auto Trait Implementations§
impl Freeze for BodyEvent
impl RefUnwindSafe for BodyEvent
impl Send for BodyEvent
impl Sync for BodyEvent
impl Unpin for BodyEvent
impl UnsafeUnpin for BodyEvent
impl UnwindSafe for BodyEvent
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