pub struct Cookie { /* private fields */ }Expand description
Session cookie, 0, 4 or 8 bytes (L2TP_ATTR_COOKIE).
Construct one with Cookie::none, the TryFrom conversions from
&[u8] and Vec<u8>, the From conversions from [u8; 4] and
[u8; 8], or by parsing a hexadecimal string. Display prints the bytes
as lowercase hexadecimal. With the serde feature a cookie is a
hexadecimal string in human-readable formats and bytes otherwise.
Implementations§
Trait Implementations§
impl Copy for Cookie
Source§impl<'de> Deserialize<'de> for Cookie
Available on crate feature serde only.
impl<'de> Deserialize<'de> for Cookie
Available on crate feature
serde only.Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Cookie
impl StructuralPartialEq for Cookie
Auto Trait Implementations§
impl Freeze for Cookie
impl RefUnwindSafe for Cookie
impl Send for Cookie
impl Sync for Cookie
impl Unpin for Cookie
impl UnsafeUnpin 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