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
sourceimpl<'a> SubscriptionId<'a>
impl<'a> SubscriptionId<'a>
sourcepub fn into_owned(self) -> SubscriptionId<'static>
pub fn into_owned(self) -> SubscriptionId<'static>
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
sourceimpl<'a> Clone for SubscriptionId<'a>
impl<'a> Clone for SubscriptionId<'a>
sourcefn clone(&self) -> SubscriptionId<'a>
fn clone(&self) -> SubscriptionId<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for SubscriptionId<'a>
impl<'a> Debug for SubscriptionId<'a>
sourceimpl<'de: 'a, 'a> Deserialize<'de> for SubscriptionId<'a>
impl<'de: 'a, 'a> Deserialize<'de> for SubscriptionId<'a>
sourcefn 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
sourceimpl<'a> From<String> for SubscriptionId<'a>
impl<'a> From<String> for SubscriptionId<'a>
sourceimpl<'a> From<SubscriptionId<'a>> for JsonValue
impl<'a> From<SubscriptionId<'a>> for JsonValue
sourcefn from(sub_id: SubscriptionId<'_>) -> Self
fn from(sub_id: SubscriptionId<'_>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<u64> for SubscriptionId<'a>
impl<'a> From<u64> for SubscriptionId<'a>
sourceimpl<'a> Hash for SubscriptionId<'a>
impl<'a> Hash for SubscriptionId<'a>
sourceimpl<'a> PartialEq<SubscriptionId<'a>> for SubscriptionId<'a>
impl<'a> PartialEq<SubscriptionId<'a>> for SubscriptionId<'a>
sourcefn eq(&self, other: &SubscriptionId<'a>) -> bool
fn eq(&self, other: &SubscriptionId<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SubscriptionId<'a>) -> bool
fn ne(&self, other: &SubscriptionId<'a>) -> bool
This method tests for !=
.
sourceimpl<'a> Serialize for SubscriptionId<'a>
impl<'a> Serialize for SubscriptionId<'a>
sourceimpl<'a> TryFrom<Value> for SubscriptionId<'a>
impl<'a> TryFrom<Value> for SubscriptionId<'a>
impl<'a> Eq for SubscriptionId<'a>
impl<'a> StructuralEq for SubscriptionId<'a>
impl<'a> StructuralPartialEq for SubscriptionId<'a>
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more