use crate::{
Result,
api::dctap::implementations::{load_dctap, reset_dctap, serialize_dctap},
formats::{DCTapFormat, InputSpec, ResultDCTapFormat},
};
use std::io;
pub trait DctapOperations {
fn load_dctap(&mut self, dctap: &InputSpec, dctap_format: Option<&DCTapFormat>) -> Result<()>;
fn serialize_dctap<W: io::Write>(
&self,
result_dctap_format: Option<&ResultDCTapFormat>,
writer: &mut W,
) -> Result<()>;
fn reset_dctap(&mut self);
}
impl DctapOperations for crate::Rudof {
fn load_dctap(&mut self, dctap: &InputSpec, dctap_format: Option<&DCTapFormat>) -> Result<()> {
load_dctap(self, dctap, dctap_format)
}
fn serialize_dctap<W: io::Write>(
&self,
result_dctap_format: Option<&ResultDCTapFormat>,
writer: &mut W,
) -> Result<()> {
serialize_dctap(self, result_dctap_format, writer)
}
fn reset_dctap(&mut self) {
reset_dctap(self)
}
}