pub struct WeakRM<'a>(/* private fields */);Expand description
A ResourceManager which is Clone and doesn’t close everything on drop
Trait Implementations§
source§impl<'a> AsResourceManager for WeakRM<'a>
impl<'a> AsResourceManager for WeakRM<'a>
source§fn find_res_list(&self, expr: &ResID) -> Result<ResList>
fn find_res_list(&self, expr: &ResID) -> Result<ResList>
Queries a VISA system to locate the resources associated with a specified interface. Read more
source§fn find_res(&self, expr: &ResID) -> Result<ResID>
fn find_res(&self, expr: &ResID) -> Result<ResID>
Queries a VISA system to locate the resources associated with a specified interface, return the first resource matched
source§fn parse_res(&self, res: &ResID) -> Result<(AttrIntfType, AttrIntfNum)>
fn parse_res(&self, res: &ResID) -> Result<(AttrIntfType, AttrIntfNum)>
Parse a resource string to get the interface information.
source§fn parse_res_ex(
&self,
res: &ResID
) -> Result<(AttrIntfType, AttrIntfNum, VisaString, VisaString, VisaString)>
fn parse_res_ex( &self, res: &ResID ) -> Result<(AttrIntfType, AttrIntfNum, VisaString, VisaString, VisaString)>
Parse a resource string to get extended interface information. Read more
source§fn open(
&self,
res_name: &ResID,
access_mode: AccessMode,
open_timeout: Duration
) -> Result<Instrument>
fn open( &self, res_name: &ResID, access_mode: AccessMode, open_timeout: Duration ) -> Result<Instrument>
Opens a session to the specified resource. Read more
source§impl<'a> From<&'a AttrRmSession> for WeakRM<'a>
impl<'a> From<&'a AttrRmSession> for WeakRM<'a>
source§fn from(value: &'a AttrRmSession) -> Self
fn from(value: &'a AttrRmSession) -> Self
Converts to this type from the input type.
source§impl From<AttrRmSession> for WeakRM<'static>
impl From<AttrRmSession> for WeakRM<'static>
source§fn from(value: AttrRmSession) -> Self
fn from(value: AttrRmSession) -> Self
Converts to this type from the input type.
source§impl<'a> PartialEq for WeakRM<'a>
impl<'a> PartialEq for WeakRM<'a>
impl<'a> Eq for WeakRM<'a>
impl<'a> StructuralPartialEq for WeakRM<'a>
Auto Trait Implementations§
impl<'a> Freeze for WeakRM<'a>
impl<'a> RefUnwindSafe for WeakRM<'a>
impl<'a> Send for WeakRM<'a>
impl<'a> Sync for WeakRM<'a>
impl<'a> Unpin for WeakRM<'a>
impl<'a> UnwindSafe for WeakRM<'a>
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