pub struct Endpoint {
pub options: WebTransportOptions,
}Expand description
An endpoint for the xwt.
Internally holds the connection options and can create
a new WebTransport object on the “web” side on a connection request.
Fields§
§options: WebTransportOptionsThe options to use to create the WebTransports.
Trait Implementations§
Source§impl Connect for Endpoint
impl Connect for Endpoint
type Error = Error
type Connecting = Connecting
async fn connect(&self, url: &str) -> Result<Self::Connecting, Self::Error>
Auto Trait Implementations§
impl Freeze for Endpoint
impl RefUnwindSafe for Endpoint
impl Send for Endpoint
impl Sync for Endpoint
impl Unpin for Endpoint
impl UnsafeUnpin for Endpoint
impl UnwindSafe for Endpoint
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