1use fidl_fuchsia_bluetooth_hfp::CallDirection as FidlCallDirection;
6
7#[derive(Debug, PartialEq, Clone, Copy)]
9pub enum Direction {
10 MobileOriginated,
12 MobileTerminated,
14}
15
16impl From<FidlCallDirection> for Direction {
17 fn from(x: FidlCallDirection) -> Self {
18 match x {
19 FidlCallDirection::MobileOriginated => Self::MobileOriginated,
20 FidlCallDirection::MobileTerminated => Self::MobileTerminated,
21 }
22 }
23}
24
25impl From<Direction> for i64 {
26 fn from(x: Direction) -> Self {
27 match x {
28 Direction::MobileOriginated => 0,
29 Direction::MobileTerminated => 1,
30 }
31 }
32}