Struct channel2::ChannelBuffer
source · pub struct ChannelBuffer {
pub channel_id: ChannelId,
/* private fields */
}
Fields§
§channel_id: ChannelId
Implementations§
source§impl ChannelBuffer
impl ChannelBuffer
pub fn remote_id(&self, cx: &AppContext) -> u64
pub fn user_store(&self) -> &Model<UserStore>
pub fn acknowledge_buffer_version( &mut self, cx: &mut ModelContext<'_, ChannelBuffer> )
pub fn epoch(&self) -> u64
pub fn buffer(&self) -> Model<Buffer>
pub fn collaborators(&self) -> &HashMap<PeerId, Collaborator>
pub fn channel(&self, cx: &AppContext) -> Option<Arc<Channel>>
pub fn is_connected(&self) -> bool
pub fn replica_id(&self, cx: &AppContext) -> u16
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ChannelBuffer
impl Send for ChannelBuffer
impl Sync for ChannelBuffer
impl Unpin for ChannelBuffer
impl !UnwindSafe for ChannelBuffer
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