pub struct HostIdentity { /* private fields */ }Expand description
This machine as its runner names carry it: runnerd-<id>-<host>-<profile>-<slot>-<secs>. Only runnerd-<id>-
identifies the machine, so a changed host name still matches the runners started before the change, and two
machines with the same or overlapping host names never take each other’s runners for their own.
Implementations§
Source§impl HostIdentity
impl HostIdentity
Sourcepub fn read() -> Result<HostIdentity>
pub fn read() -> Result<HostIdentity>
This machine’s identity, from /etc/machine-id and its host name.
Sourcepub fn new(hostname: &str, machine_id: &str) -> Option<HostIdentity>
pub fn new(hostname: &str, machine_id: &str) -> Option<HostIdentity>
The identity for a host name and a machine ID; None unless the ID is 32 hex digits.
Trait Implementations§
Source§impl Clone for HostIdentity
impl Clone for HostIdentity
Source§impl Debug for HostIdentity
impl Debug for HostIdentity
impl Eq for HostIdentity
Source§impl PartialEq for HostIdentity
impl PartialEq for HostIdentity
impl StructuralPartialEq for HostIdentity
Auto Trait Implementations§
impl Freeze for HostIdentity
impl RefUnwindSafe for HostIdentity
impl Send for HostIdentity
impl Sync for HostIdentity
impl Unpin for HostIdentity
impl UnsafeUnpin for HostIdentity
impl UnwindSafe for HostIdentity
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.