Struct sp_core::OpaquePeerId [−][src]
Simple blob to hold a PeerId
without committing to its format.
Implementations
Trait Implementations
impl Clone for OpaquePeerId
[src]
impl Clone for OpaquePeerId
[src]fn clone(&self) -> OpaquePeerId
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Decode for OpaquePeerId
[src]
impl Decode for OpaquePeerId
[src]impl Default for OpaquePeerId
[src]
impl Default for OpaquePeerId
[src]fn default() -> OpaquePeerId
[src]
impl<'de> Deserialize<'de> for OpaquePeerId
[src]
impl<'de> Deserialize<'de> for OpaquePeerId
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Encode for OpaquePeerId
[src]
impl Encode for OpaquePeerId
[src]impl Ord for OpaquePeerId
[src]
impl Ord for OpaquePeerId
[src]impl PartialEq<OpaquePeerId> for OpaquePeerId
[src]
impl PartialEq<OpaquePeerId> for OpaquePeerId
[src]fn eq(&self, other: &OpaquePeerId) -> bool
[src]
fn ne(&self, other: &OpaquePeerId) -> bool
[src]
impl PartialOrd<OpaquePeerId> for OpaquePeerId
[src]
impl PartialOrd<OpaquePeerId> for OpaquePeerId
[src]fn partial_cmp(&self, other: &OpaquePeerId) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl PassBy for OpaquePeerId
[src]
impl PassBy for OpaquePeerId
[src]type PassBy = Inner<OpaquePeerId, Vec<u8>>
The strategy that should be used to pass the type.
impl PassByInner for OpaquePeerId
[src]
impl PassByInner for OpaquePeerId
[src]impl Serialize for OpaquePeerId
[src]
impl Serialize for OpaquePeerId
[src]impl EncodeLike<OpaquePeerId> for OpaquePeerId
[src]
impl Eq for OpaquePeerId
[src]
impl StructuralEq for OpaquePeerId
[src]
impl StructuralPartialEq for OpaquePeerId
[src]
Auto Trait Implementations
impl RefUnwindSafe for OpaquePeerId
impl Send for OpaquePeerId
impl Sync for OpaquePeerId
impl Unpin for OpaquePeerId
impl UnwindSafe for OpaquePeerId
Blanket Implementations
impl<T> DecodeLimit for T where
T: Decode,
[src]
impl<T> DecodeLimit for T where
T: Decode,
[src]impl<T> FromFFIValue for T where
T: PassBy,
[src]
impl<T> FromFFIValue for T where
T: PassBy,
[src]type SelfInstance = T
As Self
can be an unsized type, it needs to be represented by a sized type at the host.
This SelfInstance
is the sized type. Read more
pub fn from_ffi_value(
context: &mut dyn FunctionContext,
arg: <<T as PassBy>::PassBy as RIType>::FFIType
) -> Result<T, String>
[src]
context: &mut dyn FunctionContext,
arg: <<T as PassBy>::PassBy as RIType>::FFIType
) -> Result<T, String>
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> IntoFFIValue for T where
T: PassBy,
[src]
impl<T> IntoFFIValue for T where
T: PassBy,
[src]pub fn into_ffi_value(
self,
context: &mut dyn FunctionContext
) -> Result<<<T as PassBy>::PassBy as RIType>::FFIType, String>
[src]
self,
context: &mut dyn FunctionContext
) -> Result<<<T as PassBy>::PassBy as RIType>::FFIType, String>
impl<T, Outer> IsWrappedBy<Outer> for T where
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>,
[src]
impl<T, Outer> IsWrappedBy<Outer> for T where
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>,
[src]impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
[src]
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
[src]pub fn unchecked_into(Self) -> T
[src]
impl<S> Codec for S where
S: Decode + Encode,
[src]
S: Decode + Encode,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<'_, '_, T> EncodeLike<&'_ &'_ T> for T where
T: Encode,
[src]
T: Encode,
impl<'_, T> EncodeLike<&'_ T> for T where
T: Encode,
[src]
T: Encode,
impl<'_, T> EncodeLike<&'_ mut T> for T where
T: Encode,
[src]
T: Encode,
impl<T> EncodeLike<Arc<T>> for T where
T: Encode,
[src]
T: Encode,
impl<T> EncodeLike<Box<T, Global>> for T where
T: Encode,
[src]
T: Encode,
impl<'a, T> EncodeLike<Cow<'a, T>> for T where
T: ToOwned + Encode,
[src]
T: ToOwned + Encode,
impl<T> EncodeLike<Rc<T>> for T where
T: Encode,
[src]
T: Encode,
impl<S> FullCodec for S where
S: Decode + FullEncode,
[src]
S: Decode + FullEncode,
impl<S> FullEncode for S where
S: Encode + EncodeLike<S>,
[src]
S: Encode + EncodeLike<S>,
impl<T> MaybeDebug for T where
T: Debug,
[src]
T: Debug,
impl<T> MaybeRefUnwindSafe for T where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,