pub struct ServerAuth { /* private fields */ }Expand description
Authentication material and DoS bounds applied before a TCP connection may reach the frame router.
Implementations§
Source§impl ServerAuth
impl ServerAuth
pub fn new( key: Vec<u8>, daemon_id: [u8; 16], daemon_ver: impl Into<String>, ) -> Self
pub fn with_limits( key: Vec<u8>, daemon_id: [u8; 16], daemon_ver: impl Into<String>, deadline: Duration, max_unauthenticated: usize, ) -> Self
pub fn with_connected_clients(self, connected_clients: ConnectedClients) -> Self
Trait Implementations§
Source§impl Clone for ServerAuth
impl Clone for ServerAuth
Auto Trait Implementations§
impl Freeze for ServerAuth
impl RefUnwindSafe for ServerAuth
impl Send for ServerAuth
impl Sync for ServerAuth
impl Unpin for ServerAuth
impl UnsafeUnpin for ServerAuth
impl UnwindSafe for ServerAuth
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