pub struct ClientOptions<'a> {
pub addr: &'a str,
pub path: &'a str,
pub subprotocols: &'a [&'a str],
pub deflate: bool,
pub basic_auth: Option<(&'a str, &'a [u8])>,
}Fields§
§addr: &'a strhost:port
path: &'a strRequest path, e.g. /ocpp/CS001 (already percent-encoded).
subprotocols: &'a [&'a str]§deflate: boolOffer permessage-deflate.
basic_auth: Option<(&'a str, &'a [u8])>Value for Authorization: Basic …, as (username, password bytes).
Auto Trait Implementations§
impl<'a> Freeze for ClientOptions<'a>
impl<'a> RefUnwindSafe for ClientOptions<'a>
impl<'a> Send for ClientOptions<'a>
impl<'a> Sync for ClientOptions<'a>
impl<'a> Unpin for ClientOptions<'a>
impl<'a> UnsafeUnpin for ClientOptions<'a>
impl<'a> UnwindSafe for ClientOptions<'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