pub struct Instrument {
pub vid: u16,
pub pid: u16,
/* private fields */
}Fields§
§vid: u16§pid: u16Implementations§
Source§impl Instrument
impl Instrument
Sourcepub fn new(vid: u16, pid: u16) -> Instrument
pub fn new(vid: u16, pid: u16) -> Instrument
Sourcepub fn info(&self) -> UsbtmcResult<String>
pub fn info(&self) -> UsbtmcResult<String>
Sourcepub fn write(&mut self, message: &str) -> UsbtmcResult<()>
pub fn write(&mut self, message: &str) -> UsbtmcResult<()>
Sourcepub fn write_raw(&mut self, data: &[u8]) -> UsbtmcResult<()>
pub fn write_raw(&mut self, data: &[u8]) -> UsbtmcResult<()>
Sourcepub fn read(&mut self) -> UsbtmcResult<String>
pub fn read(&mut self) -> UsbtmcResult<String>
Sourcepub fn read_raw(&mut self) -> UsbtmcResult<String>
pub fn read_raw(&mut self) -> UsbtmcResult<String>
Sourcepub fn ask(&mut self, data: &str) -> UsbtmcResult<String>
pub fn ask(&mut self, data: &str) -> UsbtmcResult<String>
Sourcepub fn ask_raw(&mut self, data: &[u8]) -> UsbtmcResult<String>
pub fn ask_raw(&mut self, data: &[u8]) -> UsbtmcResult<String>
Auto Trait Implementations§
impl Freeze for Instrument
impl RefUnwindSafe for Instrument
impl Send for Instrument
impl Sync for Instrument
impl Unpin for Instrument
impl UnwindSafe for Instrument
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more