pub struct ServiceInfo {
pub pid: u32,
pub started: String,
pub version: String,
pub protocol: u32,
pub endpoint: String,
pub epoch: u64,
pub build: Option<String>,
}Expand description
What a running service writes to <home>/service.json once it listens.
Fields§
§pid: u32Its process id.
started: StringWhen it started (RFC 3339, UTC).
version: StringIts version.
protocol: u32The protocol it speaks.
endpoint: StringWhere it listens: the socket’s path on Unix, the named pipe’s name on Windows.
epoch: u64Its life: a random number each start draws.
build: Option<String>The build it runs (build_of): of the binary the client that started it started (the
BUILD_ENV it was given), else of its own executable. A service of another build is
replaced as one of another release is (Client::connect_exact);
none from a service of before builds were written.
Trait Implementations§
Source§impl Clone for ServiceInfo
impl Clone for ServiceInfo
Source§impl Debug for ServiceInfo
impl Debug for ServiceInfo
Source§impl<'de> Deserialize<'de> for ServiceInfo
impl<'de> Deserialize<'de> for ServiceInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ServiceInfo
Source§impl PartialEq for ServiceInfo
impl PartialEq for ServiceInfo
Source§impl Serialize for ServiceInfo
impl Serialize for ServiceInfo
impl StructuralPartialEq for ServiceInfo
Auto Trait Implementations§
impl Forget for ServiceInfo
impl Freeze for ServiceInfo
impl Move for ServiceInfo
impl RefUnwindSafe for ServiceInfo
impl Send for ServiceInfowhere
RawVecInner: Send,
impl Sync for ServiceInfowhere
RawVecInner: Sync,
impl Unpin for ServiceInfo
impl UnsafeUnpin for ServiceInfo
impl UnwindSafe for ServiceInfowhere
RawVecInner: UnwindSafe,
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.