pub struct Client { /* private fields */ }
Expand description
Contains useful information on a client which is connected to the openvpn server
Implementations§
Source§impl Client
impl Client
pub fn new( name: String, ip_address: String, connected_since: DateTime<Utc>, bytes_received: f64, bytes_sent: f64, ) -> Client
Sourcepub fn ip_address(&self) -> &str
pub fn ip_address(&self) -> &str
Remote IP address
Sourcepub fn connected_since(&self) -> &DateTime<Utc>
pub fn connected_since(&self) -> &DateTime<Utc>
Date time they connected at
Sourcepub fn bytes_received(&self) -> f64
pub fn bytes_received(&self) -> f64
Bytes received from the client
Sourcepub fn bytes_sent(&self) -> f64
pub fn bytes_sent(&self) -> f64
Bytes sent to remote servers
Trait Implementations§
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