Struct sc_network::multiaddr::multihash::UnknownDigest [−]
pub struct UnknownDigest<S>(_)
where
S: Size;
Expand description
Multihash digest.
Trait Implementations
impl<S> Clone for UnknownDigest<S> where
S: Clone + Size,
impl<S> Clone for UnknownDigest<S> where
S: Clone + Size, pub fn clone(&self) -> UnknownDigest<S>
pub fn clone(&self) -> UnknownDigest<S>Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
impl<S> Debug for UnknownDigest<S> where
S: Debug + Size,
impl<S> Debug for UnknownDigest<S> where
S: Debug + Size, impl<S> Default for UnknownDigest<S> where
S: Default + Size,
impl<S> Default for UnknownDigest<S> where
S: Default + Size, pub fn default() -> UnknownDigest<S>
pub fn default() -> UnknownDigest<S>Returns the “default value” for a type. Read more
impl<S> Digest<S> for UnknownDigest<S> where
S: Size,
impl<S> Digest<S> for UnknownDigest<S> where
S: Size, impl<S> From<GenericArray<u8, S>> for UnknownDigest<S> where
S: Size,
impl<S> From<GenericArray<u8, S>> for UnknownDigest<S> where
S: Size, pub fn from(array: GenericArray<u8, S>) -> UnknownDigest<S>
pub fn from(array: GenericArray<u8, S>) -> UnknownDigest<S>Performs the conversion.
impl<S> Hash for UnknownDigest<S> where
S: Hash + Size,
impl<S> Hash for UnknownDigest<S> where
S: Hash + Size, impl<S> PartialEq<UnknownDigest<S>> for UnknownDigest<S> where
S: PartialEq<S> + Size,
impl<S> PartialEq<UnknownDigest<S>> for UnknownDigest<S> where
S: PartialEq<S> + Size, pub fn eq(&self, other: &UnknownDigest<S>) -> bool
pub fn eq(&self, other: &UnknownDigest<S>) -> boolThis method tests for self and other values to be equal, and is used
by ==. Read more
pub fn ne(&self, other: &UnknownDigest<S>) -> bool
pub fn ne(&self, other: &UnknownDigest<S>) -> boolThis method tests for !=.
Convert slice to Digest.
It errors when the length of the slice does not match the size of the Digest.
impl<S> Copy for UnknownDigest<S> where
S: Size,
<S as ArrayLength<u8>>::ArrayType: Copy, impl<S> Eq for UnknownDigest<S> where
S: Eq + Size, impl<S> StructuralEq for UnknownDigest<S> where
S: Size, impl<S> StructuralPartialEq for UnknownDigest<S> where
S: Size, Auto Trait Implementations
impl<S> RefUnwindSafe for UnknownDigest<S> where
<S as ArrayLength<u8>>::ArrayType: RefUnwindSafe, impl<S> Send for UnknownDigest<S>impl<S> Sync for UnknownDigest<S>impl<S> Unpin for UnknownDigest<S> where
<S as ArrayLength<u8>>::ArrayType: Unpin, impl<S> UnwindSafe for UnknownDigest<S> where
<S as ArrayLength<u8>>::ArrayType: UnwindSafe, Blanket Implementations
pub fn as_byte_slice(&self) -> &[u8]pub fn as_mut_byte_slice(&mut self) -> &mut [u8]pub fn as_mut_slice_of<T>(&mut self) -> Result<&mut [T], Error> where
T: FromByteSlice, pub fn as_slice_of<T>(&self) -> Result<&[T], Error> where
T: FromByteSlice, Mutably borrows from an owned value. Read more
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash, impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any, Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more
Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s. Read more
Compare self to key and return true if they are equal.
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
pub fn protocol_name(&self) -> &[u8]
pub fn protocol_name(&self) -> &[u8]The protocol name as bytes. Transmitted on the network. Read more
The counterpart to unchecked_from.
Consume self to return an equivalent value of T.
pub fn vzip(self) -> VAttaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
impl<T> MaybeDebug for T where
T: Debug, impl<T> MaybeDebug for T where
T: Debug,