pub struct HttpTransportBuilder { /* private fields */ }Expand description
Implementations§
Source§impl HttpTransportBuilder
impl HttpTransportBuilder
Sourcepub fn build_sync(self) -> Result<HttpTransport>
pub fn build_sync(self) -> Result<HttpTransport>
Build the transport synchronously (for backwards compatibility).
Note: The bind address is stored but the server is not started.
Call start_server() on the transport to actually bind.
Trait Implementations§
Source§impl Clone for HttpTransportBuilder
impl Clone for HttpTransportBuilder
Source§fn clone(&self) -> HttpTransportBuilder
fn clone(&self) -> HttpTransportBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HttpTransportBuilder
impl Debug for HttpTransportBuilder
Source§impl Default for HttpTransportBuilder
impl Default for HttpTransportBuilder
Source§fn default() -> HttpTransportBuilder
fn default() -> HttpTransportBuilder
Returns the “default value” for a type. Read more
Source§impl TransportBuilder for HttpTransportBuilder
impl TransportBuilder for HttpTransportBuilder
Source§fn build<'async_trait>(
self,
_persisted: Doc,
) -> Pin<Box<dyn Future<Output = Result<(Self::Transport, Option<Doc>)>> + Send + 'async_trait>>where
Self: 'async_trait,
fn build<'async_trait>(
self,
_persisted: Doc,
) -> Pin<Box<dyn Future<Output = Result<(Self::Transport, Option<Doc>)>> + Send + 'async_trait>>where
Self: 'async_trait,
Build the HTTP transport.
HTTP transport doesn’t require persisted state for identity.
Source§type Transport = HttpTransport
type Transport = HttpTransport
The transport type this builder creates.
Auto Trait Implementations§
impl Freeze for HttpTransportBuilder
impl RefUnwindSafe for HttpTransportBuilder
impl Send for HttpTransportBuilder
impl Sync for HttpTransportBuilder
impl Unpin for HttpTransportBuilder
impl UnwindSafe for HttpTransportBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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