pub struct Offer {
pub version: ProtocolVersion,
pub capabilities: CapabilitySet,
pub name: String,
}Expand description
What a client said in its initialize.
Fields§
§version: ProtocolVersionThe revision the client asked for.
An Offer, not a choice: the client naming a revision this build has
never heard of is normal and is answered with a counter-offer, not a
refusal.
capabilities: CapabilitySetWhat the client said it supported, read through the capability tables.
name: StringThe client’s own name, which is echoed nowhere but is worth keeping for an operator reading a report.
Trait Implementations§
impl Eq for Offer
impl StructuralPartialEq for Offer
Auto Trait Implementations§
impl Freeze for Offer
impl RefUnwindSafe for Offer
impl Send for Offer
impl Sync for Offer
impl Unpin for Offer
impl UnsafeUnpin for Offer
impl UnwindSafe for Offer
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