pub enum TypeID {
Device {
domain: String,
name: String,
version: String,
},
Service {
domain: String,
name: String,
version: String,
},
}
Variants§
Implementations§
Source§impl TypeID
impl TypeID
pub fn new_device(name: String, version: String) -> Self
pub fn new_device_with_domain( domain: String, name: String, version: String, ) -> Self
pub fn new_service(name: String, version: String) -> Self
pub fn new_service_with_domain( domain: String, name: String, version: String, ) -> Self
pub fn device_from(st: SearchTarget) -> Result<Self, Error>
pub fn service_from(st: SearchTarget) -> Result<Self, Error>
pub fn default_id(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TypeID
impl RefUnwindSafe for TypeID
impl Send for TypeID
impl Sync for TypeID
impl Unpin for TypeID
impl UnwindSafe for TypeID
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