pub struct ClientManagerSync { /* private fields */ }Implementations§
Source§impl ClientManagerSync
impl ClientManagerSync
pub fn get_rt(&self) -> Arc<Runtime>
Sourcepub fn disconnect(&self) -> Result<RealtimeClientBuilder, RecvError>
pub fn disconnect(&self) -> Result<RealtimeClientBuilder, RecvError>
Disconnect the client Returns a preconfigured RealtimeClientBuilder for modification or reinstantiation
pub fn get_ws_tx(&self) -> Result<UnboundedSender<RealtimeMessage>, RecvError>
Sourcepub fn get_state(&self) -> Result<ClientState, RecvError>
pub fn get_state(&self) -> Result<ClientState, RecvError>
Returns the current ClientState
Sourcepub fn get_access_token(&self) -> Result<String, RecvError>
pub fn get_access_token(&self) -> Result<String, RecvError>
Returns the current access token used by this client
Sourcepub fn get_access_token_arc(&self) -> Result<Arc<Mutex<String>>, RecvError>
pub fn get_access_token_arc(&self) -> Result<Arc<Mutex<String>>, RecvError>
Returns an Arc referencing the client’s internal tokio runtime
Sourcepub fn set_access_token(
&self,
access_token: String,
) -> Result<String, RecvError>
pub fn set_access_token( &self, access_token: String, ) -> Result<String, RecvError>
Modify the client’s access token This change cascades through all connected channels and sends the appropriate messages to the server
Sourcepub fn to_async(self) -> ClientManager
pub fn to_async(self) -> ClientManager
Unwrap the inner ClientManager. Consumes self.
Trait Implementations§
Source§impl Clone for ClientManagerSync
impl Clone for ClientManagerSync
Source§fn clone(&self) -> ClientManagerSync
fn clone(&self) -> ClientManagerSync
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 ClientManagerSync
impl RefUnwindSafe for ClientManagerSync
impl Send for ClientManagerSync
impl Sync for ClientManagerSync
impl Unpin for ClientManagerSync
impl UnwindSafe for ClientManagerSync
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