pub struct SupportedProtocols(_);Expand description
A bit vector of supported ProtocolIds.
Implementations§
source§impl SupportedProtocols
 
impl SupportedProtocols
sourcepub fn contains(&self, protocol: ProtocolId) -> bool
 
pub fn contains(&self, protocol: ProtocolId) -> bool
Returns if the protocol is set.
Trait Implementations§
source§impl Arbitrary for SupportedProtocols
 
impl Arbitrary for SupportedProtocols
§type Parameters = <BitVec as Arbitrary>::Parameters
 
type Parameters = <BitVec as Arbitrary>::Parameters
The type of parameters that 
arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default.§type Strategy = Map<<BitVec as Arbitrary>::Strategy, fn(_: BitVec) -> SupportedProtocols>
 
type Strategy = Map<<BitVec as Arbitrary>::Strategy, fn(_: BitVec) -> SupportedProtocols>
The type of 
Strategy used to generate values of type Self.source§fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
 
fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
source§impl Clone for SupportedProtocols
 
impl Clone for SupportedProtocols
source§fn clone(&self) -> SupportedProtocols
 
fn clone(&self) -> SupportedProtocols
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moresource§impl Debug for SupportedProtocols
 
impl Debug for SupportedProtocols
source§impl Default for SupportedProtocols
 
impl Default for SupportedProtocols
source§fn default() -> SupportedProtocols
 
fn default() -> SupportedProtocols
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SupportedProtocols
 
impl<'de> Deserialize<'de> for SupportedProtocols
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a, T: Iterator<Item = &'a ProtocolId>> From<T> for SupportedProtocols
 
impl<'a, T: Iterator<Item = &'a ProtocolId>> From<T> for SupportedProtocols
source§impl PartialEq<SupportedProtocols> for SupportedProtocols
 
impl PartialEq<SupportedProtocols> for SupportedProtocols
source§fn eq(&self, other: &SupportedProtocols) -> bool
 
fn eq(&self, other: &SupportedProtocols) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl Serialize for SupportedProtocols
 
impl Serialize for SupportedProtocols
source§impl TryInto<Vec<ProtocolId, Global>> for SupportedProtocols
 
impl TryInto<Vec<ProtocolId, Global>> for SupportedProtocols
impl Eq for SupportedProtocols
impl StructuralEq for SupportedProtocols
impl StructuralPartialEq for SupportedProtocols
Auto Trait Implementations§
impl RefUnwindSafe for SupportedProtocols
impl Send for SupportedProtocols
impl Sync for SupportedProtocols
impl Unpin for SupportedProtocols
impl UnwindSafe for SupportedProtocols
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
 
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.source§impl<T> Instrument for T
 
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
§impl<T> PersistableConfig for Twhere
    T: Serialize + DeserializeOwned + ?Sized,
 
impl<T> PersistableConfig for Twhere T: Serialize + DeserializeOwned + ?Sized,
§impl<T> Pointable for T
 
impl<T> Pointable for T
source§impl<T> Serialize for Twhere
    T: Serialize + ?Sized,
 
impl<T> Serialize for Twhere T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
§impl<T> TestOnlyHash for Twhere
    T: Serialize + ?Sized,
 
impl<T> TestOnlyHash for Twhere T: Serialize + ?Sized,
§fn test_only_hash(&self) -> HashValue
 
fn test_only_hash(&self) -> HashValue
Generates a hash used only for tests.