pub struct Client(/* private fields */);Implementations§
Source§impl Client
impl Client
pub async fn from_string(credentials_string: String) -> Result<Self, Error>
pub async fn new(credentials_path: String) -> Result<Self, Error>
pub fn subscribe(&self, name: String) -> Subscription
pub fn set_project(&mut self, project: String)
pub fn project(&self) -> String
pub fn topic(&self, name: String) -> Topic
pub fn is_running(&self) -> bool
pub fn stop(&self)
pub fn spawn_token_renew(&self, interval: Duration)
pub async fn refresh_token(&mut self) -> Result<(), Error>
pub fn hyper_client(&self) -> Arc<Client<HttpsConnector<HttpConnector>, Body>>
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 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