Struct ethcore_network::PeerCapabilityInfo
source · [−]pub struct PeerCapabilityInfo {
pub protocol: ProtocolId,
pub version: u8,
}
Fields
protocol: ProtocolId
version: u8
Trait Implementations
sourceimpl Clone for PeerCapabilityInfo
impl Clone for PeerCapabilityInfo
sourcefn clone(&self) -> PeerCapabilityInfo
fn clone(&self) -> PeerCapabilityInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PeerCapabilityInfo
impl Debug for PeerCapabilityInfo
sourceimpl Decodable for PeerCapabilityInfo
impl Decodable for PeerCapabilityInfo
sourcefn decode(rlp: &Rlp<'_>) -> Result<Self, DecoderError>
fn decode(rlp: &Rlp<'_>) -> Result<Self, DecoderError>
Decode a value from RLP bytes
sourceimpl PartialEq<PeerCapabilityInfo> for PeerCapabilityInfo
impl PartialEq<PeerCapabilityInfo> for PeerCapabilityInfo
sourcefn eq(&self, other: &PeerCapabilityInfo) -> bool
fn eq(&self, other: &PeerCapabilityInfo) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PeerCapabilityInfo) -> bool
fn ne(&self, other: &PeerCapabilityInfo) -> bool
This method tests for !=
.
sourceimpl ToString for PeerCapabilityInfo
impl ToString for PeerCapabilityInfo
impl Eq for PeerCapabilityInfo
impl StructuralEq for PeerCapabilityInfo
impl StructuralPartialEq for PeerCapabilityInfo
Auto Trait Implementations
impl RefUnwindSafe for PeerCapabilityInfo
impl Send for PeerCapabilityInfo
impl Sync for PeerCapabilityInfo
impl Unpin for PeerCapabilityInfo
impl UnwindSafe for PeerCapabilityInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more