pub struct SessionsReceiver<'a>(/* private fields */);Available on crate feature
client only.Expand description
Pushes Sessions to an eMSP.
Spec: 2.3.0 §mod_sessions_emsp_interface
Implementations§
Source§impl<'a> SessionsReceiver<'a>
impl<'a> SessionsReceiver<'a>
Sourcepub const fn new(client: ModuleClient<'a>) -> Self
pub const fn new(client: ModuleClient<'a>) -> Self
Wraps a module client.
Sourcepub async fn session(
&self,
owner: &PartyRef,
session_id: &str,
) -> Result<Session, OcpiError>
pub async fn session( &self, owner: &PartyRef, session_id: &str, ) -> Result<Session, OcpiError>
GET {sessions}/{country_code}/{party_id}/{session_id} — what the peer has stored.
§Errors
Propagates transport and OCPI-level errors.
Trait Implementations§
Source§impl<'a> Clone for SessionsReceiver<'a>
impl<'a> Clone for SessionsReceiver<'a>
Source§fn clone(&self) -> SessionsReceiver<'a>
fn clone(&self) -> SessionsReceiver<'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 SessionsReceiver<'a>
impl<'a> !UnwindSafe for SessionsReceiver<'a>
impl<'a> Freeze for SessionsReceiver<'a>
impl<'a> Send for SessionsReceiver<'a>
impl<'a> Sync for SessionsReceiver<'a>
impl<'a> Unpin for SessionsReceiver<'a>
impl<'a> UnsafeUnpin for SessionsReceiver<'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