pub struct Cookie(_);
Implementations§
Trait Implementations§
source§impl CodeOptData for Cookie
impl CodeOptData for Cookie
source§const CODE: OptionCode = OptionCode::Cookie
const CODE: OptionCode = OptionCode::Cookie
The option code for this option.
source§impl Compose for Cookie
impl Compose for Cookie
source§impl<Octets> From<Cookie> for AllOptData<Octets>
impl<Octets> From<Cookie> for AllOptData<Octets>
source§impl Ord for Cookie
impl Ord for Cookie
source§impl PartialEq<Cookie> for Cookie
impl PartialEq<Cookie> for Cookie
source§impl PartialOrd<Cookie> for Cookie
impl PartialOrd<Cookie> for Cookie
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Cookie
impl Eq for Cookie
impl StructuralEq for Cookie
impl StructuralPartialEq for Cookie
Auto Trait Implementations§
impl RefUnwindSafe for Cookie
impl Send for Cookie
impl Sync for Cookie
impl Unpin for Cookie
impl UnwindSafe for Cookie
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
source§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere Target: OctetsFrom<Source>,
source§fn octets_into(self) -> Result<Target, ShortBuf>
fn octets_into(self) -> Result<Target, ShortBuf>
Performs the conversion.
source§impl<T> OptData for Twhere
T: CodeOptData + Compose,
impl<T> OptData for Twhere T: CodeOptData + Compose,
source§fn code(&self) -> OptionCode
fn code(&self) -> OptionCode
Returns the option code associated with this option.
source§impl<Octets, T> ParseOptData<Octets> for Twhere
Octets: AsRef<[u8]>,
T: CodeOptData + Parse<Octets> + Compose,
impl<Octets, T> ParseOptData<Octets> for Twhere Octets: AsRef<[u8]>, T: CodeOptData + Parse<Octets> + Compose,
source§fn parse_option(
code: OptionCode,
parser: &mut Parser<Octets>
) -> Result<Option<T>, ParseError>
fn parse_option( code: OptionCode, parser: &mut Parser<Octets> ) -> Result<Option<T>, ParseError>
Parses the option code data. Read more