pub struct Offered {
pub supported: bool,
pub required: bool,
}Expand description
What the peer said about 100rel in its request.
A struct rather than two bool arguments, because supported and required are the same
type and mean nearly opposite things, and a caller that transposes them turns “may send
reliably” into “must”. That is not hypothetical: writing this module’s own tests transposed
them on the first attempt.
Fields§
§supported: bool100rel appeared in Supported.
required: bool100rel appeared in Require.
Implementations§
Trait Implementations§
impl Copy for Offered
impl Eq for Offered
impl StructuralPartialEq for Offered
Auto Trait Implementations§
impl Freeze for Offered
impl RefUnwindSafe for Offered
impl Send for Offered
impl Sync for Offered
impl Unpin for Offered
impl UnsafeUnpin for Offered
impl UnwindSafe for Offered
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