pub struct PondClient { /* private fields */ }Implementations§
Source§impl PondClient
impl PondClient
pub fn new( endpoint: impl AsRef<str>, params: Option<JoinParams>, ) -> Result<Self, ClientError>
pub fn with_options( endpoint: impl AsRef<str>, params: Option<JoinParams>, options: ClientOptions, ) -> Result<Self, ClientError>
pub fn state(&self) -> ConnectionState
pub fn subscribe_state(&self) -> Receiver<ConnectionState>
pub async fn create_channel( &self, name: impl Into<String>, params: Option<JoinParams>, ) -> Channel
pub async fn connect(&self) -> Result<(), ClientError>
pub async fn disconnect(&self)
Trait Implementations§
Source§impl Clone for PondClient
impl Clone for PondClient
Source§fn clone(&self) -> PondClient
fn clone(&self) -> PondClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PondClient
impl !RefUnwindSafe for PondClient
impl Send for PondClient
impl Sync for PondClient
impl Unpin for PondClient
impl UnsafeUnpin for PondClient
impl !UnwindSafe for PondClient
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