Enum jsonrpc_pubsub::SubscriptionId [−][src]
Unique subscription id.
NOTE Assigning same id to different requests will cause the previous request to be unsubscribed.
Variants
Number(u64)
A numerical ID, represented by a u64
.
String(String)
A non-numerical ID, for example a hash.
Implementations
impl SubscriptionId
[src]
impl SubscriptionId
[src]pub fn parse_value(val: &Value) -> Option<SubscriptionId>
[src]
Parses core::Value
into unique subscription id.
Trait Implementations
impl Clone for SubscriptionId
[src]
impl Clone for SubscriptionId
[src]fn clone(&self) -> SubscriptionId
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl From<SubscriptionId> for Value
[src]
impl From<SubscriptionId> for Value
[src]fn from(sub: SubscriptionId) -> Self
[src]
impl Hash for SubscriptionId
[src]
impl Hash for SubscriptionId
[src]impl PartialEq<SubscriptionId> for SubscriptionId
[src]
impl PartialEq<SubscriptionId> for SubscriptionId
[src]