pub struct Handshake {
pub message_id: Id,
pub role: EnergyManagementRole,
pub supported_protocol_versions: Option<Vec<ProtocolVersion>>,
}Expand description
Announces a node’s role and the S2 versions it speaks.
Not used under S2 Connect, where the version is negotiated during session initiation
and S2C §Communication - JSON messages says the handshake messages “can not be
sent”.
Fields§
§message_id: IdThis message’s identifier.
role: EnergyManagementRoleThe role of the sender.
supported_protocol_versions: Option<Vec<ProtocolVersion>>“Protocol versions supported by the sender of this message. This field is mandatory for the RM, but optional for the CEM.”
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Handshake
impl<'de> Deserialize<'de> for Handshake
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 StructuralPartialEq for Handshake
Auto Trait Implementations§
impl Freeze for Handshake
impl RefUnwindSafe for Handshake
impl Send for Handshake
impl Sync for Handshake
impl Unpin for Handshake
impl UnsafeUnpin for Handshake
impl UnwindSafe for Handshake
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