use crate::devices::DeviceError;
use crate::platform::traits::VolumeOps;
use super::MacPlatform;
pub type MacVolumeGuard = ();
impl VolumeOps for MacPlatform {
type Guard = MacVolumeGuard;
fn prepare_for_io(_path: &str, _auto_unmount: bool) -> Result<Self::Guard, DeviceError> {
Ok(())
}
fn unmount_volumes(_path: &str) -> Result<Vec<String>, DeviceError> {
Err(DeviceError::unsupported(
"Automatic unmount is not implemented on macOS yet",
))
}
}