pub struct TrajectoryHandle { /* private fields */ }Expand description
Read-only reference to a trajectory. Serializes as a path/URI — never inlines the event stream. In-memory handles error on serialization unless materialized to a file first.
Implementations§
Source§impl TrajectoryHandle
impl TrajectoryHandle
pub fn from_path(path: impl Into<PathBuf>) -> Self
pub fn in_memory(events: Vec<Event>) -> Self
pub fn source(&self) -> &TrajectorySource
Sourcepub fn path(&self) -> Option<&Path>
pub fn path(&self) -> Option<&Path>
Returns Some(path) for file-backed handles, None for in-memory.
pub fn summarize(&self) -> TrajectorySummary
Trait Implementations§
Source§impl Clone for TrajectoryHandle
impl Clone for TrajectoryHandle
Source§fn clone(&self) -> TrajectoryHandle
fn clone(&self) -> TrajectoryHandle
Returns a duplicate of the value. Read more
1.0.0 · 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 TrajectoryHandle
impl Debug for TrajectoryHandle
Source§impl<'de> Deserialize<'de> for TrajectoryHandle
impl<'de> Deserialize<'de> for TrajectoryHandle
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TrajectoryHandle
impl RefUnwindSafe for TrajectoryHandle
impl Send for TrajectoryHandle
impl Sync for TrajectoryHandle
impl Unpin for TrajectoryHandle
impl UnsafeUnpin for TrajectoryHandle
impl UnwindSafe for TrajectoryHandle
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