pub struct SendOptions<'a, G> {
pub group: Option<&'a G>,
pub priority: i64,
}Expand description
How an outgoing stream or datagram is scheduled, like W3C WebTransport’s send options.
The default is ungrouped at priority 0.
Fields§
§group: Option<&'a G>The send group to join, from Session::send_group, or None for the ungrouped
streams that go before every group.
priority: i64The priority within the group, like SendStream::set_priority: higher goes first.
Trait Implementations§
Source§impl<G> Clone for SendOptions<'_, G>
impl<G> Clone for SendOptions<'_, G>
impl<G> Copy for SendOptions<'_, G>
Source§impl<'a, G: Debug> Debug for SendOptions<'a, G>
impl<'a, G: Debug> Debug for SendOptions<'a, G>
Auto Trait Implementations§
impl<'a, G> Freeze for SendOptions<'a, G>
impl<'a, G> RefUnwindSafe for SendOptions<'a, G>where
G: RefUnwindSafe,
impl<'a, G> Send for SendOptions<'a, G>where
G: Sync,
impl<'a, G> Sync for SendOptions<'a, G>where
G: Sync,
impl<'a, G> Unpin for SendOptions<'a, G>
impl<'a, G> UnsafeUnpin for SendOptions<'a, G>
impl<'a, G> UnwindSafe for SendOptions<'a, G>where
G: RefUnwindSafe,
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