#[repr(transparent)]pub struct SendStream<T>(pub T);Expand description
A WebTransport send-stream.
Tuple Fields§
§0: TImplementations§
Source§impl<T> SendStream<T>
impl<T> SendStream<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§
Source§impl<T> AsMut<T> for SendStream<T>
impl<T> AsMut<T> for SendStream<T>
Source§impl<T> AsRef<T> for SendStream<T>
impl<T> AsRef<T> for SendStream<T>
Source§impl<T> Deref for SendStream<T>
impl<T> Deref for SendStream<T>
Source§impl<T> DerefMut for SendStream<T>
impl<T> DerefMut for SendStream<T>
Source§impl<T> Finish for SendStream<T>where
T: Finish,
impl<T> Finish for SendStream<T>where
T: Finish,
Source§impl<T> From<T> for SendStream<T>
impl<T> From<T> for SendStream<T>
Source§impl<T> Write for SendStream<T>where
T: Write,
impl<T> Write for SendStream<T>where
T: Write,
Source§async fn write(&mut self, buf: &[u8]) -> Result<NonZeroUsize, Self::Error>
async fn write(&mut self, buf: &[u8]) -> Result<NonZeroUsize, Self::Error>
Write the data from the given buffer into the stream, returning
the amount of of bytes that were successfully written into the stream.
If the returned amount is smaller than the size of the data that was
being written, the user should try writing the remaining data again.
Source§impl<T> WriteAbort for SendStream<T>where
T: WriteAbort,
impl<T> WriteAbort for SendStream<T>where
T: WriteAbort,
Source§impl<T> WriteAborted for SendStream<T>where
T: WriteAborted,
impl<T> WriteAborted for SendStream<T>where
T: WriteAborted,
Auto Trait Implementations§
impl<T> Freeze for SendStream<T>where
T: Freeze,
impl<T> RefUnwindSafe for SendStream<T>where
T: RefUnwindSafe,
impl<T> Send for SendStream<T>where
T: Send,
impl<T> Sync for SendStream<T>where
T: Sync,
impl<T> Unpin for SendStream<T>where
T: Unpin,
impl<T> UnwindSafe for SendStream<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