pub struct Trl<'a> { /* private fields */ }Expand description
Tango Resource Locator, borrowing the string it was parsed from.
This is a custom reference: it is Copy and parsing one allocates nothing, the
owned counterpart being ArcTrl.
RFC:
- https://tango-controls.readthedocs.io/projects/rfc/en/latest/16/TangoResourceLocator.html
- https://tango-controls.readthedocs.io/projects/rfc/en/latest/2/Device.html
- https://tango-controls.readthedocs.io/projects/rfc/en/latest/4/Attribute.html
- https://tango-controls.readthedocs.io/projects/rfc/en/latest/5/Property.html
Implementations§
Source§impl<'a> Trl<'a>
impl<'a> Trl<'a>
Sourcepub fn host_and_port(self) -> Option<(&'a str, u16)>
pub fn host_and_port(self) -> Option<(&'a str, u16)>
The host and port of this TRL, if it has any.
Sourcepub fn object(self) -> TrlObject<'a>
pub fn object(self) -> TrlObject<'a>
The object this TRL locates: an alias, a device or a device attribute.
Trait Implementations§
impl<'a> Copy for Trl<'a>
Auto Trait Implementations§
impl<'a> Forget for Trl<'a>
impl<'a> Freeze for Trl<'a>
impl<'a> RefUnwindSafe for Trl<'a>
impl<'a> Send for Trl<'a>
impl<'a> Sync for Trl<'a>
impl<'a> Unpin for Trl<'a>
impl<'a> UnsafeUnpin for Trl<'a>
impl<'a> UnwindSafe for Trl<'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