pub struct GoogleEnvironment;Implementations§
Source§impl GoogleEnvironment
impl GoogleEnvironment
Sourcepub async fn detect_google_project_id() -> Option<String>
pub async fn detect_google_project_id() -> Option<String>
The Google Cloud project of this environment: the first of the GCP_PROJECT,
PROJECT_ID, GCP_PROJECT_ID and GOOGLE_CLOUD_PROJECT environment variables
that is set, else the project the Application Default Credentials file names, else
the project of the metadata server.
pub async fn init_google_services_channel<S: AsRef<str>>( api_url: S, ) -> Result<Channel, Error>
Auto Trait Implementations§
impl Freeze for GoogleEnvironment
impl RefUnwindSafe for GoogleEnvironment
impl Send for GoogleEnvironment
impl Sync for GoogleEnvironment
impl Unpin for GoogleEnvironment
impl UnsafeUnpin for GoogleEnvironment
impl UnwindSafe for GoogleEnvironment
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request