pub struct LiteSubscription {
pub group: CheetahString,
pub topic: CheetahString,
pub lite_topic_set: HashSet<CheetahString>,
pub update_time: i64,
pub version: i64,
}Fields§
§group: CheetahString§topic: CheetahString§lite_topic_set: HashSet<CheetahString>§update_time: i64§version: i64Implementations§
Source§impl LiteSubscription
impl LiteSubscription
pub fn new(group: CheetahString, topic: CheetahString, update_time: i64) -> Self
pub fn with_lite_topic_set( self, lite_topic_set: HashSet<CheetahString>, update_time: i64, ) -> Self
pub fn with_update_time(self, update_time: i64) -> Self
pub fn with_version(self, version: i64) -> Self
pub fn add_lite_topic( &mut self, lite_topic: CheetahString, update_time: i64, ) -> bool
pub fn add_lite_topic_set( &mut self, set: &HashSet<CheetahString>, update_time: i64, )
pub fn remove_lite_topic( &mut self, lite_topic: &CheetahString, update_time: i64, ) -> bool
pub fn remove_lite_topic_set( &mut self, set: &HashSet<CheetahString>, update_time: i64, )
pub const fn group(&self) -> &CheetahString
pub fn set_group(&mut self, group: CheetahString)
pub const fn topic(&self) -> &CheetahString
pub fn set_topic(&mut self, topic: CheetahString)
pub fn lite_topic_set(&self) -> &HashSet<CheetahString>
pub fn set_lite_topic_set( &mut self, lite_topic_set: HashSet<CheetahString>, update_time: i64, )
pub const fn update_time(&self) -> i64
pub fn set_update_time(&mut self, update_time: i64)
pub const fn version(&self) -> i64
pub fn set_version(&mut self, version: i64)
Trait Implementations§
Source§impl Clone for LiteSubscription
impl Clone for LiteSubscription
Source§impl Debug for LiteSubscription
impl Debug for LiteSubscription
Source§impl Display for LiteSubscription
impl Display for LiteSubscription
impl Eq for LiteSubscription
Source§impl PartialEq for LiteSubscription
impl PartialEq for LiteSubscription
impl StructuralPartialEq for LiteSubscription
Auto Trait Implementations§
impl Freeze for LiteSubscription
impl RefUnwindSafe for LiteSubscription
impl Send for LiteSubscription
impl Sync for LiteSubscription
impl Unpin for LiteSubscription
impl UnsafeUnpin for LiteSubscription
impl UnwindSafe for LiteSubscription
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