pub struct Clb { /* private fields */ }Expand description
@description: Clb @author: Jerry.Yang @date: 2024-11-13 10:51:51 @return {*}
Trait Implementations§
Source§impl ServiceClb for Clb
@description: ServiceClb trait implementation for Clb struct
impl ServiceClb for Clb
@description: ServiceClb trait implementation for Clb struct
This implementation defines the methods required to create and interact with the CLB service
through the ServiceClb trait. The trait includes functionality for initializing a new Clb
instance and sending requests to the CLB service, such as describing load balancers.
new_clb: Creates a new instance ofClbwith a valid client configuration.new_describe_load_balancers: Sends a request to describe load balancers using the API defined inapi_describe_load_balancers::ApiDescribeLoadBalancersClb.
The Clb struct will use the client::Client, client_info::ClientInfo, and handles::Handles
to make requests to the API and parse the responses appropriately.
@date: 2024-11-13 10:54:42 @return: ServiceClb trait methods implementation for Clb
Source§fn new_clb(session: Session) -> Result<Self, Error>
fn new_clb(session: Session) -> Result<Self, Error>
new_clb initializes a new instance of the Clb struct.
This method creates a Clb service by setting up the client configuration,
client information, and the necessary handles for making requests.
The method returns a Clb instance on success or an error if the configuration fails.
§Arguments
session: The session object used to retrieve the necessary client configuration for the CLB service.
§Returns
Ok(Clb): A newClbinstance if the initialization succeeds.Err(error::Error): Returns an error if the configuration or client setup fails.
Source§async fn new_describe_load_balancers(
&self,
request: DescribeLoadBalancersReq,
) -> Result<DescribeLoadBalancersResp, Error>
async fn new_describe_load_balancers( &self, request: DescribeLoadBalancersReq, ) -> Result<DescribeLoadBalancersResp, Error>
new_describe_load_balancers sends a request to the CLB service to describe load balancers.
This method builds the request to the DescribeLoadBalancers API, sends the request asynchronously,
and parses the response into a structured format.
It returns the parsed response on success, or an error if the request or response handling fails.
§Arguments
&self: The reference to theClbinstance calling this method.request: The request struct (DescribeLoadBalancersReq) containing parameters for the load balancer query.
§Returns
Ok(DescribeLoadBalancersResp): A successful response containing details of the load balancers.Err(error::Error): An error if the request fails or the response cannot be parsed.
Auto Trait Implementations§
impl Freeze for Clb
impl RefUnwindSafe for Clb
impl Send for Clb
impl Sync for Clb
impl Unpin for Clb
impl UnwindSafe for Clb
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
T in a tonic::Request