pub struct IncrementChannel {
pub channel_id: ChannelId,
pub last_event_seq: Seq,
pub need_sync: bool,
pub raw: Bytes,
}Expand description
increment_channel 帧 data(IncrementChannel.ToMap())的解析结果(B-rest 契约)。
真 Go data 含 id/teamId/displayName/lastEventSeq/unreadCount/needSync/mentionList/
urgentPostList(设计文档 §1.3);helix 增量同步只需 channel_id + last_event_seq
(作 cursor 种子)+ need_sync(false=已追平省 sync);raw 供 emit im:channel:increment 透传。
Fields§
§channel_id: ChannelId§last_event_seq: Seq§need_sync: bool§raw: BytesTrait Implementations§
Source§impl Clone for IncrementChannel
impl Clone for IncrementChannel
Source§fn clone(&self) -> IncrementChannel
fn clone(&self) -> IncrementChannel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 IncrementChannel
impl Debug for IncrementChannel
impl Eq for IncrementChannel
Source§impl PartialEq for IncrementChannel
impl PartialEq for IncrementChannel
impl StructuralPartialEq for IncrementChannel
Auto Trait Implementations§
impl !Freeze for IncrementChannel
impl RefUnwindSafe for IncrementChannel
impl Send for IncrementChannel
impl Sync for IncrementChannel
impl Unpin for IncrementChannel
impl UnsafeUnpin for IncrementChannel
impl UnwindSafe for IncrementChannel
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