pub struct SubscriptionInfo {
pub subscription_type: String,
pub channel: String,
pub active_subscriptions: i64,
}Expand description
Information about an event subscription.
Fields§
§subscription_type: StringThe type of subscription (“subscribe”)
channel: StringThe channel/topic name being subscribed to
active_subscriptions: i64Current number of active subscriptions on this connection
Trait Implementations§
Source§impl Clone for SubscriptionInfo
impl Clone for SubscriptionInfo
Source§fn clone(&self) -> SubscriptionInfo
fn clone(&self) -> SubscriptionInfo
Returns a duplicate 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 SubscriptionInfo
impl Debug for SubscriptionInfo
Source§impl<'de> Deserialize<'de> for SubscriptionInfo
impl<'de> Deserialize<'de> for SubscriptionInfo
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 FromRedisValue for SubscriptionInfo
impl FromRedisValue for SubscriptionInfo
Source§fn from_redis_value(value: &Value) -> RedisResult<Self>
fn from_redis_value(value: &Value) -> RedisResult<Self>
Given a redis
Value this attempts to convert it into the given
destination type. If that fails because it’s not compatible an
appropriate error is generated.Source§fn from_owned_redis_value(v: Value) -> Result<Self, RedisError>
fn from_owned_redis_value(v: Value) -> Result<Self, RedisError>
Given a redis
Value this attempts to convert it into the given
destination type. If that fails because it’s not compatible an
appropriate error is generated.Source§fn from_redis_values(items: &[Value]) -> Result<Vec<Self>, RedisError>
fn from_redis_values(items: &[Value]) -> Result<Vec<Self>, RedisError>
Similar to
from_redis_value but constructs a vector of objects
from another vector of values. This primarily exists internally
to customize the behavior for vectors of tuples.Source§fn from_owned_redis_values(items: Vec<Value>) -> Result<Vec<Self>, RedisError>
fn from_owned_redis_values(items: Vec<Value>) -> Result<Vec<Self>, RedisError>
The same as
from_redis_values, but takes a Vec<Value> instead
of a &[Value].Source§fn from_each_owned_redis_values(
items: Vec<Value>,
) -> Vec<Result<Self, RedisError>>
fn from_each_owned_redis_values( items: Vec<Value>, ) -> Vec<Result<Self, RedisError>>
The same as
from_owned_redis_values, but returns a result for each
conversion to make handling them case-by-case possible.Source§fn from_owned_byte_vec(_vec: Vec<u8>) -> Result<Vec<Self>, RedisError>
fn from_owned_byte_vec(_vec: Vec<u8>) -> Result<Vec<Self>, RedisError>
Convert bytes to a single element vector.
Source§impl PartialEq for SubscriptionInfo
impl PartialEq for SubscriptionInfo
Source§impl Serialize for SubscriptionInfo
impl Serialize for SubscriptionInfo
impl Eq for SubscriptionInfo
impl StructuralPartialEq for SubscriptionInfo
Auto Trait Implementations§
impl Freeze for SubscriptionInfo
impl RefUnwindSafe for SubscriptionInfo
impl Send for SubscriptionInfo
impl Sync for SubscriptionInfo
impl Unpin for SubscriptionInfo
impl UnsafeUnpin for SubscriptionInfo
impl UnwindSafe for SubscriptionInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more