4UY2WBBPAJUJRRI2S2OGO3R4NQRF6AIXKKAYPMPFYAU274JQYSEQC
G55Y75FUL4LWA346HQCZ5EVA5G54EDTZAW7MPVTO44BP6D5UMURAC
7KNPYIDUXCBZ65NA74NL2DIFS6STJWN4XXHXLTIV5QXZSVLARJMAC
SXEYMYF7P4RZMZ46WPL4IZUTSQ2ATBWYZX7QNVMS3SGOYXYOHAGQC
LPM4PBYJFIFZXN3JNEZOKEQ74UXUMURIFY5U4R2CFC6N4XINHL4AC
G7VOM2IMN4SOHOOCFLMNPKTU5DB5EEJMK7SSBA3DLWWXFA672RUAC
ZDK3GNDBWXJ2OXFDYB72ZCEBGLBF4MKE5K3PVHDZATHJ7HJIDPRQC
}
#[derive(Clone)]
pub struct Sink {}
pub fn sink() -> Sink {
Sink {}
}
impl WorkingCopyRead for Sink {
type Error = std::io::Error;
fn file_metadata(&self, _file: &str) -> Result<InodeMetadata, Self::Error> {
panic!("file_metadata not implemented: {:?}", _file)
}
fn read_file(&self, _file: &str, _buffer: &mut Vec<u8>) -> Result<(), Self::Error> {
panic!("read_file not implemented: {:?}", _file)
}
fn modified_time(&self, _file: &str) -> Result<std::time::SystemTime, Self::Error> {
panic!("modified_time not implemented: {:?}", _file)
}
impl WorkingCopy for Sink {
fn is_writable(&self, _path: &str) -> Result<bool, Self::Error> {
Ok(false)
}
fn create_dir_all(&self, _path: &str) -> Result<(), Self::Error> {
Ok(())
}
fn remove_path(&self, _name: &str, _rec: bool) -> Result<(), Self::Error> {
Ok(())
}
fn rename(&self, _former: &str, _new: &str) -> Result<(), Self::Error> {
Ok(())
}
fn set_permissions(&self, _name: &str, _permissions: u16) -> Result<(), Self::Error> {
Ok(())
}
type Writer = std::io::Sink;
fn write_file(&self, _file: &str, _inode: Inode) -> Result<Self::Writer, Self::Error> {
Ok(std::io::sink())
}
}