pub struct Client { /* private fields */ }Expand description
Connection for the Phoenix channel
Implementations§
Source§impl Client
impl Client
Sourcepub fn set_join_id(&self, join_id: usize)
pub fn set_join_id(&self, join_id: usize)
Sets the join id.
Sourcepub async fn join_with_payload<P>(
&self,
topic: &str,
payload: P,
) -> Result<Id, Error>where
P: Serialize,
pub async fn join_with_payload<P>(
&self,
topic: &str,
payload: P,
) -> Result<Id, Error>where
P: Serialize,
Joins a channel with additional parameters.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
impl !UnwindSafe for Client
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