Enum tendermint_p2p::secret_connection::Version [−][src]
Protocol version (based on the Tendermint version)
Variants
Tendermint v0.34
Tendermint v0.33
Pre-Tendermint v0.33
Implementations
impl Version
[src]
pub fn has_transcript(self) -> bool
[src]
Does this version of Secret Connection use a transcript hash
pub fn is_protobuf(self) -> bool
[src]
Are messages encoded using Protocol Buffers?
pub fn encode_initial_handshake(self, eph_pubkey: &EphemeralPublic) -> Vec<u8>
[src]
Encode the initial handshake message (i.e. first one sent by both peers)
pub fn decode_initial_handshake(self, bytes: &[u8]) -> Result<EphemeralPublic>
[src]
Decode the initial handshake message
pub fn encode_auth_signature(
self,
pub_key: &PublicKey,
signature: &Signature
) -> Vec<u8>
[src]
self,
pub_key: &PublicKey,
signature: &Signature
) -> Vec<u8>
Encode signature which authenticates the handshake
pub fn auth_sig_msg_response_len(self) -> usize
[src]
Get the length of the auth message response for this protocol version
pub fn decode_auth_signature(self, bytes: &[u8]) -> Result<AuthSigMessage>
[src]
Decode signature message which authenticates the handshake
Trait Implementations
impl Clone for Version
[src]
impl Copy for Version
[src]
impl Debug for Version
[src]
impl Eq for Version
[src]
impl Ord for Version
[src]
fn cmp(&self, other: &Version) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<Version> for Version
[src]
fn eq(&self, other: &Version) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<Version> for Version
[src]
fn partial_cmp(&self, other: &Version) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for Version
[src]
impl StructuralPartialEq for Version
[src]
Auto Trait Implementations
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnwindSafe for Version
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,