2020-01-22 03:12:17 +00:00
|
|
|
use crate::{
|
2020-01-23 14:10:49 +00:00
|
|
|
astar::{Astar, PathResult},
|
2020-01-22 03:12:17 +00:00
|
|
|
terrain::Block,
|
|
|
|
vol::{BaseVol, ReadVol},
|
|
|
|
};
|
2020-05-21 19:20:01 +00:00
|
|
|
use hashbrown::hash_map::DefaultHashBuilder;
|
2020-01-24 21:24:57 +00:00
|
|
|
use rand::{thread_rng, Rng};
|
2020-01-22 03:12:17 +00:00
|
|
|
use std::iter::FromIterator;
|
|
|
|
use vek::*;
|
|
|
|
|
|
|
|
// Path
|
|
|
|
|
2020-01-25 02:15:15 +00:00
|
|
|
#[derive(Clone, Debug)]
|
2020-01-23 14:10:49 +00:00
|
|
|
pub struct Path<T> {
|
|
|
|
nodes: Vec<T>,
|
2020-01-22 03:12:17 +00:00
|
|
|
}
|
|
|
|
|
2020-01-25 02:15:15 +00:00
|
|
|
impl<T> Default for Path<T> {
|
|
|
|
fn default() -> Self {
|
|
|
|
Self {
|
|
|
|
nodes: Vec::default(),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-23 14:10:49 +00:00
|
|
|
impl<T> FromIterator<T> for Path<T> {
|
|
|
|
fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self {
|
2020-01-22 03:12:17 +00:00
|
|
|
Self {
|
|
|
|
nodes: iter.into_iter().collect(),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-10 19:47:36 +00:00
|
|
|
#[allow(clippy::len_without_is_empty)] // TODO: Pending review in #587
|
2020-01-23 14:10:49 +00:00
|
|
|
impl<T> Path<T> {
|
2020-02-01 20:39:39 +00:00
|
|
|
pub fn len(&self) -> usize { self.nodes.len() }
|
2020-01-22 03:12:17 +00:00
|
|
|
|
2020-02-06 22:32:26 +00:00
|
|
|
pub fn iter(&self) -> impl Iterator<Item = &T> { self.nodes.iter() }
|
|
|
|
|
2020-02-01 20:39:39 +00:00
|
|
|
pub fn start(&self) -> Option<&T> { self.nodes.first() }
|
2020-01-22 03:12:17 +00:00
|
|
|
|
2020-02-01 20:39:39 +00:00
|
|
|
pub fn end(&self) -> Option<&T> { self.nodes.last() }
|
2020-04-20 00:17:54 +00:00
|
|
|
|
2020-04-20 16:30:39 +00:00
|
|
|
pub fn nodes(&self) -> &[T] { &self.nodes }
|
2020-01-22 03:12:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Route: A path that can be progressed along
|
|
|
|
|
|
|
|
#[derive(Default, Clone, Debug)]
|
|
|
|
pub struct Route {
|
2020-01-23 14:10:49 +00:00
|
|
|
path: Path<Vec3<i32>>,
|
2020-01-22 03:12:17 +00:00
|
|
|
next_idx: usize,
|
|
|
|
}
|
|
|
|
|
2020-01-23 14:10:49 +00:00
|
|
|
impl From<Path<Vec3<i32>>> for Route {
|
2020-02-01 20:39:39 +00:00
|
|
|
fn from(path: Path<Vec3<i32>>) -> Self { Self { path, next_idx: 0 } }
|
2020-01-22 03:12:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
impl Route {
|
2020-02-01 20:39:39 +00:00
|
|
|
pub fn path(&self) -> &Path<Vec3<i32>> { &self.path }
|
2020-01-22 03:12:17 +00:00
|
|
|
|
2020-07-04 19:22:55 +00:00
|
|
|
pub fn next(&self, i: usize) -> Option<Vec3<i32>> {
|
|
|
|
self.path.nodes.get(self.next_idx + i).copied()
|
|
|
|
}
|
2020-01-22 03:12:17 +00:00
|
|
|
|
2020-07-04 19:22:55 +00:00
|
|
|
pub fn is_finished(&self) -> bool { self.next(0).is_none() }
|
2020-01-22 03:12:17 +00:00
|
|
|
|
2020-04-18 18:28:19 +00:00
|
|
|
pub fn traverse<V>(
|
|
|
|
&mut self,
|
|
|
|
vol: &V,
|
|
|
|
pos: Vec3<f32>,
|
2020-07-04 19:22:55 +00:00
|
|
|
vel: Vec3<f32>,
|
2020-04-18 18:28:19 +00:00
|
|
|
traversal_tolerance: f32,
|
2020-07-04 19:22:55 +00:00
|
|
|
) -> Option<(Vec3<f32>, f32)>
|
2020-01-22 03:12:17 +00:00
|
|
|
where
|
|
|
|
V: BaseVol<Vox = Block> + ReadVol,
|
|
|
|
{
|
2020-07-04 19:22:55 +00:00
|
|
|
let next0 = self.next(0).unwrap_or(pos.map(|e| e.floor() as i32));
|
|
|
|
let next1 = self.next(1).unwrap_or(next0);
|
|
|
|
if vol.get(next0).map(|b| b.is_solid()).unwrap_or(false) {
|
2020-01-22 03:12:17 +00:00
|
|
|
None
|
|
|
|
} else {
|
2020-07-04 19:22:55 +00:00
|
|
|
let next_tgt = next0.map(|e| e as f32) + Vec3::new(0.5, 0.5, 0.0);
|
2020-07-04 00:17:51 +00:00
|
|
|
if pos.xy().distance_squared(next_tgt.xy()) < traversal_tolerance.powf(2.0)
|
|
|
|
&& next_tgt.z - pos.z < 0.2
|
|
|
|
&& next_tgt.z - pos.z > -2.2
|
2020-07-04 19:22:55 +00:00
|
|
|
&& vel.z <= 0.0
|
|
|
|
&& vol
|
|
|
|
.ray(pos + Vec3::unit_z() * 0.5, next_tgt + Vec3::unit_z() * 0.5)
|
|
|
|
.until(|block| block.is_solid())
|
|
|
|
.cast()
|
|
|
|
.0
|
|
|
|
> pos.distance(next_tgt) * 0.9
|
2020-01-25 23:39:38 +00:00
|
|
|
{
|
2020-01-22 03:12:17 +00:00
|
|
|
self.next_idx += 1;
|
|
|
|
}
|
2020-07-04 19:22:55 +00:00
|
|
|
|
|
|
|
let line = LineSegment2 {
|
|
|
|
start: pos.xy(),
|
|
|
|
end: pos.xy() + vel.xy() * 100.0,
|
|
|
|
};
|
|
|
|
|
|
|
|
let align = |block_pos: Vec3<i32>| {
|
|
|
|
(0..2)
|
|
|
|
.map(|i| (0..2).map(move |j| Vec2::new(i, j)))
|
|
|
|
.flatten()
|
|
|
|
.map(|rpos| block_pos + rpos)
|
|
|
|
.map(|block_pos| {
|
|
|
|
let block_posf = block_pos.xy().map(|e| e as f32);
|
|
|
|
let proj = line.projected_point(block_posf);
|
|
|
|
let clamped = proj.clamped(
|
|
|
|
block_pos.xy().map(|e| e as f32),
|
|
|
|
block_pos.xy().map(|e| e as f32),
|
|
|
|
);
|
|
|
|
|
|
|
|
(proj.distance_squared(clamped), clamped)
|
|
|
|
})
|
|
|
|
.min_by_key(|(d2, _)| (d2 * 1000.0) as i32)
|
|
|
|
.unwrap()
|
|
|
|
.1
|
|
|
|
};
|
|
|
|
|
|
|
|
let cb = CubicBezier2 {
|
|
|
|
start: pos.xy(),
|
|
|
|
ctrl0: pos.xy() + vel.xy().try_normalized().unwrap_or(Vec2::zero()),
|
|
|
|
ctrl1: align(next0),
|
|
|
|
end: align(next1),
|
|
|
|
};
|
|
|
|
|
|
|
|
let tgt2d = cb.evaluate(0.5);
|
|
|
|
let tgt = Vec3::from(tgt2d) + Vec3::unit_z() * next_tgt.z;
|
|
|
|
let tgt_dir = (tgt - pos).xy().try_normalized().unwrap_or(Vec2::unit_y());
|
|
|
|
let next_dir = cb
|
|
|
|
.evaluate_derivative(0.5)
|
|
|
|
.try_normalized()
|
|
|
|
.unwrap_or(tgt_dir);
|
|
|
|
|
|
|
|
//let vel_dir = vel.xy().try_normalized().unwrap_or(Vec2::zero());
|
|
|
|
//let avg_dir = (tgt_dir * 0.2 + vel_dir *
|
|
|
|
// 0.8).try_normalized().unwrap_or(Vec2::zero()); let bearing =
|
|
|
|
// Vec3::<f32>::from(avg_dir * (tgt - pos).xy().magnitude()) + Vec3::unit_z() *
|
|
|
|
// (tgt.z - pos.z);
|
|
|
|
|
|
|
|
Some((
|
|
|
|
tgt - pos,
|
|
|
|
next_dir
|
|
|
|
.dot(vel.xy().try_normalized().unwrap_or(Vec2::zero()))
|
|
|
|
.max(0.0)
|
|
|
|
* 0.75
|
|
|
|
+ 0.25,
|
|
|
|
))
|
2020-01-22 03:12:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-01 20:39:39 +00:00
|
|
|
/// A self-contained system that attempts to chase a moving target, only
|
|
|
|
/// performing pathfinding if necessary
|
2020-01-22 03:12:17 +00:00
|
|
|
#[derive(Default, Clone, Debug)]
|
|
|
|
pub struct Chaser {
|
2020-01-22 14:24:11 +00:00
|
|
|
last_search_tgt: Option<Vec3<f32>>,
|
2020-07-04 00:17:51 +00:00
|
|
|
route: Option<Route>,
|
2020-05-21 19:20:01 +00:00
|
|
|
/// We use this hasher (AAHasher) because:
|
|
|
|
/// (1) we care about DDOS attacks (ruling out FxHash);
|
|
|
|
/// (2) we don't care about determinism across computers (we can use
|
|
|
|
/// AAHash).
|
|
|
|
astar: Option<Astar<Vec3<i32>, DefaultHashBuilder>>,
|
2020-01-22 03:12:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
impl Chaser {
|
2020-01-24 21:24:57 +00:00
|
|
|
pub fn chase<V>(
|
|
|
|
&mut self,
|
|
|
|
vol: &V,
|
|
|
|
pos: Vec3<f32>,
|
2020-07-04 19:22:55 +00:00
|
|
|
vel: Vec3<f32>,
|
2020-01-24 21:24:57 +00:00
|
|
|
tgt: Vec3<f32>,
|
|
|
|
min_dist: f32,
|
2020-04-16 23:07:29 +00:00
|
|
|
traversal_tolerance: f32,
|
2020-07-04 19:22:55 +00:00
|
|
|
) -> Option<(Vec3<f32>, f32)>
|
2020-01-22 03:12:17 +00:00
|
|
|
where
|
|
|
|
V: BaseVol<Vox = Block> + ReadVol,
|
|
|
|
{
|
|
|
|
let pos_to_tgt = pos.distance(tgt);
|
|
|
|
|
2020-07-04 00:17:51 +00:00
|
|
|
if ((pos - tgt) * Vec3::new(1.0, 1.0, 2.0)).magnitude_squared() < min_dist.powf(2.0) {
|
2020-01-22 03:12:17 +00:00
|
|
|
return None;
|
|
|
|
}
|
|
|
|
|
2020-07-04 00:17:51 +00:00
|
|
|
let bearing = if let Some(end) = self.route.as_ref().and_then(|r| r.path().end().copied()) {
|
2020-01-22 03:12:17 +00:00
|
|
|
let end_to_tgt = end.map(|e| e as f32).distance(tgt);
|
|
|
|
if end_to_tgt > pos_to_tgt * 0.3 + 5.0 {
|
|
|
|
None
|
|
|
|
} else {
|
2020-01-24 21:24:57 +00:00
|
|
|
if thread_rng().gen::<f32>() < 0.005 {
|
2020-07-04 19:22:55 +00:00
|
|
|
// Randomly repath to avoid getting stuck
|
2020-07-04 00:17:51 +00:00
|
|
|
None
|
|
|
|
} else {
|
|
|
|
self.route
|
|
|
|
.as_mut()
|
2020-07-04 19:22:55 +00:00
|
|
|
.and_then(|r| r.traverse(vol, pos, vel, traversal_tolerance))
|
2020-01-22 14:24:11 +00:00
|
|
|
}
|
2020-01-22 03:12:17 +00:00
|
|
|
}
|
|
|
|
} else {
|
|
|
|
None
|
|
|
|
};
|
|
|
|
|
|
|
|
// TODO: What happens when we get stuck?
|
|
|
|
if let Some(bearing) = bearing {
|
|
|
|
Some(bearing)
|
|
|
|
} else {
|
2020-01-22 14:24:11 +00:00
|
|
|
if self
|
|
|
|
.last_search_tgt
|
|
|
|
.map(|last_tgt| last_tgt.distance(tgt) > pos_to_tgt * 0.15 + 5.0)
|
|
|
|
.unwrap_or(true)
|
|
|
|
{
|
2020-07-04 00:17:51 +00:00
|
|
|
let (start_pos, path) = find_path(&mut self.astar, vol, pos, tgt);
|
|
|
|
if start_pos.distance_squared(pos) < 4.0f32.powf(2.0) {
|
|
|
|
self.route = path.map(Route::from);
|
|
|
|
} else {
|
|
|
|
self.route = None;
|
|
|
|
}
|
2020-01-22 14:24:11 +00:00
|
|
|
}
|
2020-01-22 03:12:17 +00:00
|
|
|
|
2020-07-04 19:22:55 +00:00
|
|
|
Some(((tgt - pos) * Vec3::new(1.0, 1.0, 0.0), 0.75))
|
2020-01-22 03:12:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-01-23 14:10:49 +00:00
|
|
|
|
2020-06-10 19:47:36 +00:00
|
|
|
#[allow(clippy::float_cmp)] // TODO: Pending review in #587
|
2020-01-23 14:10:49 +00:00
|
|
|
fn find_path<V>(
|
2020-05-21 19:20:01 +00:00
|
|
|
astar: &mut Option<Astar<Vec3<i32>, DefaultHashBuilder>>,
|
2020-01-23 14:10:49 +00:00
|
|
|
vol: &V,
|
2020-01-24 10:40:52 +00:00
|
|
|
startf: Vec3<f32>,
|
|
|
|
endf: Vec3<f32>,
|
2020-07-04 00:17:51 +00:00
|
|
|
) -> (Vec3<f32>, Option<Path<Vec3<i32>>>)
|
2020-01-23 14:10:49 +00:00
|
|
|
where
|
|
|
|
V: BaseVol<Vox = Block> + ReadVol,
|
|
|
|
{
|
|
|
|
let is_walkable = |pos: &Vec3<i32>| {
|
|
|
|
vol.get(*pos - Vec3::new(0, 0, 1))
|
2020-04-20 16:06:19 +00:00
|
|
|
.map(|b| b.is_solid() && b.get_height() == 1.0)
|
2020-01-23 14:10:49 +00:00
|
|
|
.unwrap_or(false)
|
|
|
|
&& vol
|
|
|
|
.get(*pos + Vec3::new(0, 0, 0))
|
|
|
|
.map(|b| !b.is_solid())
|
|
|
|
.unwrap_or(true)
|
|
|
|
&& vol
|
|
|
|
.get(*pos + Vec3::new(0, 0, 1))
|
|
|
|
.map(|b| !b.is_solid())
|
|
|
|
.unwrap_or(true)
|
|
|
|
};
|
|
|
|
let get_walkable_z = |pos| {
|
|
|
|
let mut z_incr = 0;
|
2020-01-25 18:49:47 +00:00
|
|
|
for _ in 0..32 {
|
2020-01-23 14:10:49 +00:00
|
|
|
let test_pos = pos + Vec3::unit_z() * z_incr;
|
|
|
|
if is_walkable(&test_pos) {
|
|
|
|
return Some(test_pos);
|
|
|
|
}
|
|
|
|
z_incr = -z_incr + if z_incr <= 0 { 1 } else { 0 };
|
|
|
|
}
|
|
|
|
None
|
|
|
|
};
|
|
|
|
|
|
|
|
let (start, end) = match (
|
2020-01-24 10:40:52 +00:00
|
|
|
get_walkable_z(startf.map(|e| e.floor() as i32)),
|
|
|
|
get_walkable_z(endf.map(|e| e.floor() as i32)),
|
2020-01-23 14:10:49 +00:00
|
|
|
) {
|
|
|
|
(Some(start), Some(end)) => (start, end),
|
2020-07-04 00:17:51 +00:00
|
|
|
_ => return (startf, None),
|
2020-01-23 14:10:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
let heuristic = |pos: &Vec3<i32>| (pos.distance_squared(end) as f32).sqrt();
|
|
|
|
let neighbors = |pos: &Vec3<i32>| {
|
|
|
|
let pos = *pos;
|
2020-01-25 18:49:47 +00:00
|
|
|
const DIRS: [Vec3<i32>; 17] = [
|
2020-01-23 14:10:49 +00:00
|
|
|
Vec3::new(0, 1, 0), // Forward
|
|
|
|
Vec3::new(0, 1, 1), // Forward upward
|
|
|
|
Vec3::new(0, 1, 2), // Forward Upwardx2
|
|
|
|
Vec3::new(0, 1, -1), // Forward downward
|
|
|
|
Vec3::new(1, 0, 0), // Right
|
|
|
|
Vec3::new(1, 0, 1), // Right upward
|
|
|
|
Vec3::new(1, 0, 2), // Right Upwardx2
|
|
|
|
Vec3::new(1, 0, -1), // Right downward
|
|
|
|
Vec3::new(0, -1, 0), // Backwards
|
|
|
|
Vec3::new(0, -1, 1), // Backward Upward
|
|
|
|
Vec3::new(0, -1, 2), // Backward Upwardx2
|
|
|
|
Vec3::new(0, -1, -1), // Backward downward
|
|
|
|
Vec3::new(-1, 0, 0), // Left
|
|
|
|
Vec3::new(-1, 0, 1), // Left upward
|
|
|
|
Vec3::new(-1, 0, 2), // Left Upwardx2
|
|
|
|
Vec3::new(-1, 0, -1), // Left downward
|
|
|
|
Vec3::new(0, 0, -1), // Downwards
|
|
|
|
];
|
|
|
|
|
2020-01-25 18:49:47 +00:00
|
|
|
let walkable = [
|
|
|
|
is_walkable(&(pos + Vec3::new(1, 0, 0))),
|
|
|
|
is_walkable(&(pos + Vec3::new(-1, 0, 0))),
|
|
|
|
is_walkable(&(pos + Vec3::new(0, 1, 0))),
|
|
|
|
is_walkable(&(pos + Vec3::new(0, -1, 0))),
|
|
|
|
];
|
|
|
|
|
2020-01-27 15:51:07 +00:00
|
|
|
const DIAGONALS: [(Vec3<i32>, [usize; 2]); 8] = [
|
2020-01-25 18:49:47 +00:00
|
|
|
(Vec3::new(1, 1, 0), [0, 2]),
|
|
|
|
(Vec3::new(-1, 1, 0), [1, 2]),
|
|
|
|
(Vec3::new(1, -1, 0), [0, 3]),
|
|
|
|
(Vec3::new(-1, -1, 0), [1, 3]),
|
2020-01-27 15:51:07 +00:00
|
|
|
(Vec3::new(1, 1, 1), [0, 2]),
|
|
|
|
(Vec3::new(-1, 1, 1), [1, 2]),
|
|
|
|
(Vec3::new(1, -1, 1), [0, 3]),
|
|
|
|
(Vec3::new(-1, -1, 1), [1, 3]),
|
2020-01-25 18:49:47 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
DIRS.iter()
|
2020-03-17 14:14:20 +00:00
|
|
|
.map(move |dir| (pos, dir))
|
|
|
|
.filter(move |(pos, dir)| {
|
|
|
|
is_walkable(pos)
|
2020-07-04 00:17:51 +00:00
|
|
|
&& is_walkable(&(*pos + **dir))
|
2020-03-17 14:14:20 +00:00
|
|
|
&& ((dir.z < 1
|
|
|
|
|| vol
|
|
|
|
.get(pos + Vec3::unit_z() * 2)
|
|
|
|
.map(|b| !b.is_solid())
|
|
|
|
.unwrap_or(true))
|
|
|
|
&& (dir.z < 2
|
|
|
|
|| vol
|
|
|
|
.get(pos + Vec3::unit_z() * 3)
|
|
|
|
.map(|b| !b.is_solid())
|
|
|
|
.unwrap_or(true))
|
2020-03-17 16:37:39 +00:00
|
|
|
&& (dir.z >= 0
|
2020-03-17 14:14:20 +00:00
|
|
|
|| vol
|
|
|
|
.get(pos + *dir + Vec3::unit_z() * 2)
|
|
|
|
.map(|b| !b.is_solid())
|
|
|
|
.unwrap_or(true)))
|
|
|
|
})
|
|
|
|
.map(move |(pos, dir)| pos + dir)
|
2020-01-25 18:49:47 +00:00
|
|
|
.chain(
|
|
|
|
DIAGONALS
|
|
|
|
.iter()
|
|
|
|
.filter(move |(dir, [a, b])| {
|
|
|
|
is_walkable(&(pos + *dir)) && walkable[*a] && walkable[*b]
|
|
|
|
})
|
|
|
|
.map(move |(dir, _)| pos + *dir),
|
|
|
|
)
|
2020-01-23 14:10:49 +00:00
|
|
|
};
|
2020-07-04 19:22:55 +00:00
|
|
|
|
|
|
|
let crow_line = LineSegment2 {
|
|
|
|
start: startf.xy(),
|
|
|
|
end: endf.xy(),
|
|
|
|
};
|
|
|
|
|
|
|
|
let transition = |a: &Vec3<i32>, b: &Vec3<i32>| {
|
|
|
|
1.0 + crow_line.distance_to_point(b.xy().map(|e| e as f32)) * 0.025
|
|
|
|
+ (b.z - a.z - 1).max(0) as f32 * 3.0
|
|
|
|
};
|
2020-01-23 14:10:49 +00:00
|
|
|
let satisfied = |pos: &Vec3<i32>| pos == &end;
|
|
|
|
|
|
|
|
let mut new_astar = match astar.take() {
|
2020-07-04 00:17:51 +00:00
|
|
|
None => Astar::new(25_000, start, heuristic, DefaultHashBuilder::default()),
|
2020-01-23 14:10:49 +00:00
|
|
|
Some(astar) => astar,
|
|
|
|
};
|
|
|
|
|
2020-07-04 00:17:51 +00:00
|
|
|
let path_result = new_astar.poll(100, heuristic, neighbors, transition, satisfied);
|
2020-01-23 14:10:49 +00:00
|
|
|
|
|
|
|
*astar = Some(new_astar);
|
|
|
|
|
2020-07-04 00:17:51 +00:00
|
|
|
(startf, match path_result {
|
2020-01-23 14:10:49 +00:00
|
|
|
PathResult::Path(path) => {
|
|
|
|
*astar = None;
|
2020-07-04 00:17:51 +00:00
|
|
|
Some(path)
|
2020-02-01 20:39:39 +00:00
|
|
|
},
|
2020-01-25 02:15:15 +00:00
|
|
|
PathResult::None(path) => {
|
|
|
|
*astar = None;
|
2020-07-04 00:17:51 +00:00
|
|
|
Some(path)
|
2020-02-01 20:39:39 +00:00
|
|
|
},
|
2020-01-25 02:15:15 +00:00
|
|
|
PathResult::Exhausted(path) => {
|
2020-01-23 14:10:49 +00:00
|
|
|
*astar = None;
|
2020-07-04 00:17:51 +00:00
|
|
|
Some(path)
|
2020-02-01 20:39:39 +00:00
|
|
|
},
|
2020-07-04 00:17:51 +00:00
|
|
|
PathResult::Pending => None,
|
|
|
|
})
|
2020-01-23 14:10:49 +00:00
|
|
|
}
|