pub trait Cookie {
// Required methods
unsafe fn from_sequence(seq: u64) -> Self;
fn sequence(&self) -> u64;
}
Expand description
General trait for cookies returned by requests.
Required Methods§
sourceunsafe fn from_sequence(seq: u64) -> Self
unsafe fn from_sequence(seq: u64) -> Self
§Safety
seq
must be a valid cookie for a given Request
or Reply
.
Object Safety§
This trait is not object safe.