pub struct CloseWebTransportSession { /* private fields */ }Expand description
Capsules for WebTransport session termination.
Implementations§
Source§impl CloseWebTransportSession
impl CloseWebTransportSession
Sourcepub fn with_capsule(capsule: &Capsule<'_>) -> Result<Self, ErrorCode>
pub fn with_capsule(capsule: &Capsule<'_>) -> Result<Self, ErrorCode>
Sourcepub fn error_code(&self) -> VarInt
pub fn error_code(&self) -> VarInt
Returns the error code sent over this capsule.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CloseWebTransportSession
impl RefUnwindSafe for CloseWebTransportSession
impl Send for CloseWebTransportSession
impl Sync for CloseWebTransportSession
impl Unpin for CloseWebTransportSession
impl UnwindSafe for CloseWebTransportSession
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