pub enum Selection<'a> {
All,
Indices(&'a [usize]),
}Expand description
Explicit pack selection. A server’s absent selection can mean an ACK-only
round or probe, so callers must decide that a pack is required before using
this type. Indices(&[]) deliberately encodes an empty pack.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Selection<'a>
impl<'a> RefUnwindSafe for Selection<'a>
impl<'a> Send for Selection<'a>
impl<'a> Sync for Selection<'a>
impl<'a> Unpin for Selection<'a>
impl<'a> UnsafeUnpin for Selection<'a>
impl<'a> UnwindSafe for Selection<'a>
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