pub struct Channel { /* private fields */ }
Implementations§
Source§impl Channel
impl Channel
pub fn new(name: &str) -> Self
pub fn name(&self) -> &str
pub fn channel_type(&self) -> &ChannelType
pub fn is_subscribed(&self) -> bool
pub fn set_subscribed(&mut self, subscribed: bool)
pub fn members(&self) -> Option<&HashMap<String, Value>>
pub fn add_member(&mut self, id: String, info: Value) -> PusherResult<()>
pub fn remove_member(&mut self, id: &str) -> PusherResult<()>
pub fn clear_members(&mut self)
pub fn member_count(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Channel
impl RefUnwindSafe for Channel
impl Send for Channel
impl Sync for Channel
impl Unpin for Channel
impl UnwindSafe for Channel
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