pub struct Client { /* private fields */ }Expand description
A 64-bit Client Cookie
Implementations§
Source§impl Client
impl Client
Sourcepub fn new(
version: Version,
algorithm: Algorithm,
client_ip: IpAddr,
server_ip: IpAddr,
client_secret: &[u8],
) -> Self
pub fn new( version: Version, algorithm: Algorithm, client_ip: IpAddr, server_ip: IpAddr, client_secret: &[u8], ) -> Self
Creates a new client cookie
Trait Implementations§
Source§impl Ord for Client
impl Ord for Client
Source§impl PartialOrd for Client
impl PartialOrd for Client
impl Copy for Client
impl Eq for Client
impl StructuralPartialEq for Client
Auto Trait Implementations§
impl Freeze for Client
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnwindSafe for Client
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