pub struct DeviceTarget {
pub host: String,
pub credentials: Option<DeviceCredentials>,
}Expand description
Everything a core needs to reach one physical device.
Fields§
§host: String§credentials: Option<DeviceCredentials>Implementations§
Source§impl DeviceTarget
impl DeviceTarget
pub fn new(host: impl Into<String>) -> Self
pub fn with_credentials(self, credentials: Option<DeviceCredentials>) -> Self
Trait Implementations§
Source§impl Clone for DeviceTarget
impl Clone for DeviceTarget
Source§fn clone(&self) -> DeviceTarget
fn clone(&self) -> DeviceTarget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeviceTarget
impl Debug for DeviceTarget
impl Eq for DeviceTarget
Source§impl PartialEq for DeviceTarget
impl PartialEq for DeviceTarget
impl StructuralPartialEq for DeviceTarget
Auto Trait Implementations§
impl Freeze for DeviceTarget
impl RefUnwindSafe for DeviceTarget
impl Send for DeviceTarget
impl Sync for DeviceTarget
impl Unpin for DeviceTarget
impl UnsafeUnpin for DeviceTarget
impl UnwindSafe for DeviceTarget
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