pub struct DaemonHello {
pub daemon_version: String,
pub capabilities: Vec<String>,
}Expand description
What a daemon advertises about itself, in reply to
Request::Hello.
daemon_version is the daemon process’s own
CARGO_PKG_VERSION — the first time this has ever been on the
wire. tear status previously printed the CLI’s version under
a version key, which is a different binary and can differ
arbitrarily from the daemon’s.
Fields§
§daemon_version: StringThe daemon binary’s own package version.
capabilities: Vec<String>Wire names of every capability this daemon implements.
Implementations§
Source§impl DaemonHello
impl DaemonHello
Sourcepub fn for_this_build(daemon_version: &str) -> Self
pub fn for_this_build(daemon_version: &str) -> Self
The hello this build of the daemon answers with.
Trait Implementations§
Source§impl Clone for DaemonHello
impl Clone for DaemonHello
Source§fn clone(&self) -> DaemonHello
fn clone(&self) -> DaemonHello
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 DaemonHello
impl Debug for DaemonHello
Source§impl<'de> Deserialize<'de> for DaemonHello
impl<'de> Deserialize<'de> for DaemonHello
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 DaemonHello
Source§impl PartialEq for DaemonHello
impl PartialEq for DaemonHello
Source§impl Serialize for DaemonHello
impl Serialize for DaemonHello
impl StructuralPartialEq for DaemonHello
Auto Trait Implementations§
impl Freeze for DaemonHello
impl RefUnwindSafe for DaemonHello
impl Send for DaemonHello
impl Sync for DaemonHello
impl Unpin for DaemonHello
impl UnsafeUnpin for DaemonHello
impl UnwindSafe for DaemonHello
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