pub struct HttpLicenceTransport { /* private fields */ }Expand description
LicenceTransport over HTTP.
Implementations§
Source§impl HttpLicenceTransport
impl HttpLicenceTransport
Sourcepub fn new(cfg: LicenceLinkConfig) -> Result<Self, LicenceClientError>
pub fn new(cfg: LicenceLinkConfig) -> Result<Self, LicenceClientError>
A transport for cfg. Refused unless the link is pinned or opted in.
Sourcepub fn link_security(&self) -> LinkSecurity
pub fn link_security(&self) -> LinkSecurity
How this link authenticates weft-licence.
Trait Implementations§
Source§impl LicenceTransport for HttpLicenceTransport
impl LicenceTransport for HttpLicenceTransport
Source§fn call<'life0, 'async_trait>(
&'life0 self,
req: LicenceRequest,
) -> Pin<Box<dyn Future<Output = Result<LicenceResponse, LicenceClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn call<'life0, 'async_trait>(
&'life0 self,
req: LicenceRequest,
) -> Pin<Box<dyn Future<Output = Result<LicenceResponse, LicenceClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Send
req and return the status and body.Auto Trait Implementations§
impl !RefUnwindSafe for HttpLicenceTransport
impl !UnwindSafe for HttpLicenceTransport
impl Freeze for HttpLicenceTransport
impl Send for HttpLicenceTransport
impl Sync for HttpLicenceTransport
impl Unpin for HttpLicenceTransport
impl UnsafeUnpin for HttpLicenceTransport
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
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more