pub struct Shake {
pub version: ProtocolVersion,
pub capabilities: Capabilities,
pub genesis: Hash,
pub total_difficulty: Difficulty,
pub user_agent: String,
}
Expand description
Second part of a handshake, receiver of the first part replies with its own version and characteristics.
Fields§
§version: ProtocolVersion
sender version
capabilities: Capabilities
sender capabilities
genesis: Hash
genesis block of our chain, only connect to peers on the same chain
total_difficulty: Difficulty
total difficulty accumulated by the sender, used to check whether sync may be needed
user_agent: String
name of version of the software
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Shake
impl RefUnwindSafe for Shake
impl Send for Shake
impl Sync for Shake
impl Unpin for Shake
impl UnwindSafe for Shake
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