pub struct Greeting {
pub version: String,
pub protocol: u32,
pub toolchains: Vec<String>,
pub capabilities: Vec<String>,
pub executes: Vec<String>,
}Expand description
What a helper said about itself at the handshake.
Spelled as text rather than as the protocol’s own types: this crate does not read the protocol, and a diagnostic that made it do so would put the crate that compares programs downstream of the crate that starts them.
Fields§
§version: StringThe helper’s own version.
protocol: u32The protocol version the two settled on.
toolchains: Vec<String>The compilers it analyses with — its own, not the project’s.
capabilities: Vec<String>What it offers to supply, in the spelling the protocol uses.
executes: Vec<String>The classes of execution it acts on when permitted, in the spelling a person types to permit them.
Reported because permitting something is a decision, and the person making it should be able to find out beforehand whether the program they are permitting would do anything with it.
Trait Implementations§
impl Eq for Greeting
impl StructuralPartialEq for Greeting
Auto Trait Implementations§
impl Freeze for Greeting
impl RefUnwindSafe for Greeting
impl Send for Greeting
impl Sync for Greeting
impl Unpin for Greeting
impl UnsafeUnpin for Greeting
impl UnwindSafe for Greeting
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.