Struct gapi_grpc::google::devtools::cloudprofiler::v2::profiler_service_client::ProfilerServiceClient[][src]

pub struct ProfilerServiceClient<T> { /* fields omitted */ }

Manage the collection of continuous profiling data provided by profiling agents running in the cloud or by an offline provider of profiling data.

General guidelines:

Implementations

impl ProfilerServiceClient<Channel>[src]

pub async fn connect<D>(dst: D) -> Result<Self, Error> where
    D: TryInto<Endpoint>,
    D::Error: Into<StdError>, 
[src]

Attempt to create a new client by connecting to a given endpoint.

impl<T> ProfilerServiceClient<T> where
    T: GrpcService<BoxBody>,
    T::ResponseBody: Body + HttpBody + Send + 'static,
    T::Error: Into<StdError>,
    <T::ResponseBody as HttpBody>::Error: Into<StdError> + Send
[src]

pub fn new(inner: T) -> Self[src]

pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self[src]

pub async fn create_profile(
    &mut self,
    request: impl IntoRequest<CreateProfileRequest>
) -> Result<Response<Profile>, Status>
[src]

CreateProfile creates a new profile resource in the online mode.

The server ensures that the new profiles are created at a constant rate per deployment, so the creation request may hang for some time until the next profile session is available.

The request may fail with ABORTED error if the creation is not available within ~1m, the response will indicate the duration of the backoff the client should take before attempting creating a profile again. The backoff duration is returned in google.rpc.RetryInfo extension on the response status. To a gRPC client, the extension will be return as a binary-serialized proto in the trailing metadata item named “google.rpc.retryinfo-bin”.

pub async fn create_offline_profile(
    &mut self,
    request: impl IntoRequest<CreateOfflineProfileRequest>
) -> Result<Response<Profile>, Status>
[src]

CreateOfflineProfile creates a new profile resource in the offline mode. The client provides the profile to create along with the profile bytes, the server records it.

pub async fn update_profile(
    &mut self,
    request: impl IntoRequest<UpdateProfileRequest>
) -> Result<Response<Profile>, Status>
[src]

UpdateProfile updates the profile bytes and labels on the profile resource created in the online mode. Updating the bytes for profiles created in the offline mode is currently not supported: the profile content must be provided at the time of the profile creation.

Trait Implementations

impl<T: Clone> Clone for ProfilerServiceClient<T>[src]

impl<T> Debug for ProfilerServiceClient<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for ProfilerServiceClient<T>

impl<T> Send for ProfilerServiceClient<T> where
    T: Send

impl<T> Sync for ProfilerServiceClient<T> where
    T: Sync

impl<T> Unpin for ProfilerServiceClient<T> where
    T: Unpin

impl<T> !UnwindSafe for ProfilerServiceClient<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]