pub struct TokensSender<'a>(/* private fields */);Available on crate feature
client only.Expand description
Real-time authorization and Token pulls, on the eMSP’s Sender interface.
Spec: 2.3.0 §mod_tokens_emsp_interface
Implementations§
Source§impl<'a> TokensSender<'a>
impl<'a> TokensSender<'a>
Sourcepub const fn new(client: ModuleClient<'a>) -> Self
pub const fn new(client: ModuleClient<'a>) -> Self
Wraps a module client.
POST {tokens}/{token_uid}/authorize[?type=] — a real-time authorization.
LocationReferences: Location and EVSEs for which the driver wants to charge.
§Errors
Propagates transport and OCPI-level errors; a 2004 Unknown Token from the eMSP arrives
as OcpiError::Remote.
Trait Implementations§
Source§impl<'a> Clone for TokensSender<'a>
impl<'a> Clone for TokensSender<'a>
Source§fn clone(&self) -> TokensSender<'a>
fn clone(&self) -> TokensSender<'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 TokensSender<'a>
impl<'a> !UnwindSafe for TokensSender<'a>
impl<'a> Freeze for TokensSender<'a>
impl<'a> Send for TokensSender<'a>
impl<'a> Sync for TokensSender<'a>
impl<'a> Unpin for TokensSender<'a>
impl<'a> UnsafeUnpin for TokensSender<'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