Struct wtransport::endpoint::ConnectRequestBuilder
source · pub struct ConnectRequestBuilder { /* private fields */ }
Expand description
A builder for ConnectOptions
.
Implementations§
source§impl ConnectRequestBuilder
impl ConnectRequestBuilder
sourcepub fn add_header<K, V>(self, key: K, value: V) -> Self
pub fn add_header<K, V>(self, key: K, value: V) -> Self
Adds a header to the connection options.
§Examples
use wtransport::endpoint::ConnectOptions;
let options = ConnectOptions::builder("https://example.com:4433/webtransport")
.add_header("Authorization", "AuthToken")
.build();
sourcepub fn build(self) -> ConnectOptions
pub fn build(self) -> ConnectOptions
Constructs the ConnectOptions
from the builder configuration.
Trait Implementations§
source§impl IntoConnectOptions for ConnectRequestBuilder
impl IntoConnectOptions for ConnectRequestBuilder
source§fn into_options(self) -> ConnectOptions
fn into_options(self) -> ConnectOptions
Perform value-to-value conversion into
ConnectOptions
.Auto Trait Implementations§
impl Freeze for ConnectRequestBuilder
impl RefUnwindSafe for ConnectRequestBuilder
impl Send for ConnectRequestBuilder
impl Sync for ConnectRequestBuilder
impl Unpin for ConnectRequestBuilder
impl UnwindSafe for ConnectRequestBuilder
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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