pub struct HubClientInfoClient<'a>(/* private fields */);Available on crate feature
client only.Expand description
Reads and pushes ClientInfo, the hub’s view of who is connected.
A configuration module: these requests carry no routing headers, which
OcpiRequest::routed enforces on the way out.
Spec: 2.3.0 §mod_hub_client_info_module
Implementations§
Source§impl<'a> HubClientInfoClient<'a>
impl<'a> HubClientInfoClient<'a>
Sourcepub const fn new(client: ModuleClient<'a>) -> Self
pub const fn new(client: ModuleClient<'a>) -> Self
Wraps a module client.
Sourcepub fn list(
&self,
query: PageQuery,
) -> Result<PageStream<'a, ClientInfo>, OcpiError>
pub fn list( &self, query: PageQuery, ) -> Result<PageStream<'a, ClientInfo>, OcpiError>
Sourcepub async fn client_info(
&self,
party: &PartyRef,
) -> Result<ClientInfo, OcpiError>
pub async fn client_info( &self, party: &PartyRef, ) -> Result<ClientInfo, OcpiError>
GET {hubclientinfo}/{country_code}/{party_id} — one party’s status.
§Errors
Propagates transport and OCPI-level errors.
Sourcepub async fn put_client_info(&self, info: &ClientInfo) -> Result<(), OcpiError>
pub async fn put_client_info(&self, info: &ClientInfo) -> Result<(), OcpiError>
PUT {hubclientinfo}/{country_code}/{party_id} — the hub telling a client about a party.
§Errors
Propagates validation, transport and OCPI-level errors.
Trait Implementations§
Source§impl<'a> Clone for HubClientInfoClient<'a>
impl<'a> Clone for HubClientInfoClient<'a>
Source§fn clone(&self) -> HubClientInfoClient<'a>
fn clone(&self) -> HubClientInfoClient<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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<'a> !RefUnwindSafe for HubClientInfoClient<'a>
impl<'a> !UnwindSafe for HubClientInfoClient<'a>
impl<'a> Freeze for HubClientInfoClient<'a>
impl<'a> Send for HubClientInfoClient<'a>
impl<'a> Sync for HubClientInfoClient<'a>
impl<'a> Unpin for HubClientInfoClient<'a>
impl<'a> UnsafeUnpin for HubClientInfoClient<'a>
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