use fidl_fuchsia_bluetooth_hfp::CallDirection as FidlCallDirection;
#[derive(Debug, PartialEq, Clone, Copy)]
pub enum Direction {
MobileOriginated,
MobileTerminated,
}
impl From<FidlCallDirection> for Direction {
fn from(x: FidlCallDirection) -> Self {
match x {
FidlCallDirection::MobileOriginated => Self::MobileOriginated,
FidlCallDirection::MobileTerminated => Self::MobileTerminated,
}
}
}
impl From<Direction> for i64 {
fn from(x: Direction) -> Self {
match x {
Direction::MobileOriginated => 0,
Direction::MobileTerminated => 1,
}
}
}