pub struct Channel { /* private fields */ }Implementations§
Source§impl Channel
impl Channel
pub fn name(&self) -> &str
pub fn state(&self) -> ChannelState
pub fn subscribe_state(&self) -> Receiver<ChannelState>
pub fn subscribe_events(&self) -> Receiver<ChannelEvent>
pub async fn presence(&self) -> Vec<PondPresence> ⓘ
pub async fn join(&self)
pub async fn leave(&self)
pub async fn send_message( &self, event: impl Into<String>, payload: Option<PondMessage>, )
pub async fn send_for_response( &self, event: impl Into<String>, payload: Option<PondMessage>, timeout: Option<Duration>, ) -> Result<PondMessage, ClientError>
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 UnsafeUnpin 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