pub struct Hello {
pub version_major: u32,
pub version_minor: u32,
}Fields§
§version_major: u32Major version of the protocol Increment means breaking change
version_minor: u32Minor version of the protocol Increment means reaction core can handle older version plugins
Implementations§
Source§impl Hello
impl Hello
Sourcepub fn is_compatible(server: &Hello, plugin: &Hello) -> Result<(), String>
pub fn is_compatible(server: &Hello, plugin: &Hello) -> Result<(), String>
Used by the reaction daemon. Permits to check compatibility between two versions. Major versions must be the same between the daemon and plugin. Minor version of the daemon must be greater than or equal minor version of the plugin.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Hello
impl<'de> Deserialize<'de> for Hello
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
Source§impl Ord for Hello
impl Ord for Hello
Source§impl PartialOrd for Hello
impl PartialOrd for Hello
impl Eq for Hello
impl StructuralPartialEq for Hello
Auto Trait Implementations§
impl Freeze for Hello
impl RefUnwindSafe for Hello
impl Send for Hello
impl Sync for Hello
impl Unpin for Hello
impl UnwindSafe for Hello
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