Enum jsonrpsee_types::params::SubscriptionId
source · [−]Expand description
Id of a subscription, communicated by the server.
Variants
Num(u64)
Numeric id
Str(Cow<'a, str>)
String id
Implementations
Convert SubscriptionId<'a> to SubscriptionId<'static> so that it can be moved across threads.
This can cause an allocation if the id is a string.
Trait Implementations
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
Performs the conversion.
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl<'a> RefUnwindSafe for SubscriptionId<'a>
impl<'a> Send for SubscriptionId<'a>
impl<'a> Sync for SubscriptionId<'a>
impl<'a> Unpin for SubscriptionId<'a>
impl<'a> UnwindSafe for SubscriptionId<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches 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