pub struct Selection { /* private fields */ }Expand description
Proof that one response Upgrade selection is syntactically valid and was present in the request’s offer set. Construction performs exact case-insensitive byte comparison; no collision-prone digest is retained.
Implementations§
Source§impl Selection
impl Selection
pub fn select<'a>( offered: impl IntoIterator<Item = &'a [u8]>, selected: &[u8], ) -> Result<Self, UpgradeError>
Trait Implementations§
impl Copy for Selection
impl Eq for Selection
impl StructuralPartialEq for Selection
Auto Trait Implementations§
impl Freeze for Selection
impl RefUnwindSafe for Selection
impl Send for Selection
impl Sync for Selection
impl Unpin for Selection
impl UnsafeUnpin for Selection
impl UnwindSafe for Selection
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