#[repr(transparent)]pub struct Datagram<T>(pub T);Expand description
A WebTransport datagram.
Tuple Fields§
§0: TImplementations§
Source§impl<T> Datagram<T>
impl<T> Datagram<T>
Sourcepub const fn from_const(value: T) -> Self
pub const fn from_const(value: T) -> Self
Create an instance from a value of the underlying type T
with a const context.
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Take the underlying value out.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Datagram<T>where
T: Freeze,
impl<T> RefUnwindSafe for Datagram<T>where
T: RefUnwindSafe,
impl<T> Send for Datagram<T>where
T: Send,
impl<T> Sync for Datagram<T>where
T: Sync,
impl<T> Unpin for Datagram<T>where
T: Unpin,
impl<T> UnwindSafe for Datagram<T>where
T: UnwindSafe,
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