use error::{Result, ErrorKind};
use std::path;
use std::fmt;
use std::error;
pub fn xch<A: AsRef<path::Path>, B: AsRef<path::Path>>(path1: A, path2: B) -> Result<()> {
Err(ErrorKind::NotImplemented.into())
}
#[derive(Debug)]
pub struct PlatformError;
impl fmt::Display for PlatformError {
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
write!(fmt, "GenericPlatformError")
}
}
impl error::Error for PlatformError {
fn cause(&self) -> Option<&error::Error> {
None
}
fn description(&self) -> &str {
"Generic error because atomic methods are not implemented for the current platform"
}
}