pub trait Visa {
// Required methods
fn write(&mut self, command: &str) -> Result<()>;
fn read(&self) -> Result<String>;
fn read_idn(&mut self) -> Result<Idn>;
fn reset(&mut self) -> Result<()>;
fn read_resources(rm: &DefaultRM) -> Result<Vec<VisaString>>;
fn new_session(
rm: &DefaultRM,
manufacturer: &str,
model: &str
) -> Result<Option<Self>>
where Self: Sized;
fn wait_operation_complete(&mut self) -> Result<()>;
}Required Methods§
fn write(&mut self, command: &str) -> Result<()>
fn read(&self) -> Result<String>
fn read_idn(&mut self) -> Result<Idn>
fn reset(&mut self) -> Result<()>
fn read_resources(rm: &DefaultRM) -> Result<Vec<VisaString>>
fn new_session(
rm: &DefaultRM,
manufacturer: &str,
model: &str
) -> Result<Option<Self>>where
Self: Sized,
fn wait_operation_complete(&mut self) -> Result<()>
Object Safety§
This trait is not object safe.