pub struct ChannelManagerSync { /* private fields */ }Implementations§
Source§impl ChannelManagerSync
impl ChannelManagerSync
pub fn subscribe(&self)
pub fn unsubscribe( &self, ) -> Result<Result<ChannelState, ChannelSendError>, RecvError>
pub fn subscribe_blocking(&self) -> Result<(), RecvError>
pub fn broadcast(&self, payload: BroadcastPayload)
pub fn get_state(&self) -> Result<ChannelState, RecvError>
Sourcepub fn get_presence_state(&self) -> PresenceState
pub fn get_presence_state(&self) -> PresenceState
Returns the current PresenceState of the associated channel
pub fn track(&self, payload: HashMap<String, Value>) -> Result<(), RecvError>
pub fn untrack(&self) -> Result<(), RecvError>
Sourcepub fn to_async(self) -> ChannelManager
pub fn to_async(self) -> ChannelManager
Unwrap the inner ChannelManager. Consumes self.
Trait Implementations§
Source§impl Clone for ChannelManagerSync
impl Clone for ChannelManagerSync
Source§fn clone(&self) -> ChannelManagerSync
fn clone(&self) -> ChannelManagerSync
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 moreAuto Trait Implementations§
impl Freeze for ChannelManagerSync
impl RefUnwindSafe for ChannelManagerSync
impl Send for ChannelManagerSync
impl Sync for ChannelManagerSync
impl Unpin for ChannelManagerSync
impl UnwindSafe for ChannelManagerSync
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