Struct xwt_web_sys::Endpoint
source · 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: WebTransportOptions
The options to use to create the WebTransport
s.
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 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