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 Forget for ServerAuth
impl Freeze for ServerAuthwhere
*const ArcInner<[u8]> is !null: Freeze,
PhantomData<ArcInner<[u8]>>: Freeze,
*const ArcInner<str> is !null: Freeze,
PhantomData<ArcInner<str>>: Freeze,
*const ArcInner<Semaphore> is !null: Freeze,
PhantomData<ArcInner<Semaphore>>: Freeze,
*const ArcInner<Atomic<u64>> is !null: Freeze,
PhantomData<ArcInner<Atomic<u64>>>: Freeze,
*const ArcInner<PreAuthRejectLog> is !null: Freeze,
PhantomData<ArcInner<PreAuthRejectLog>>: Freeze,
impl Move for ServerAuth
impl RefUnwindSafe for ServerAuthwhere
Atomic<usize>: RefUnwindSafe,
Mutex<Waitlist>: RefUnwindSafe,
AtomicUsize: RefUnwindSafe,
Atomic<u64>: RefUnwindSafe,
impl Send for ServerAuth
impl Sync for ServerAuth
impl Unpin for ServerAuth
impl UnsafeUnpin for ServerAuthwhere
*const ArcInner<[u8]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[u8]>>: UnsafeUnpin,
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
*const ArcInner<Semaphore> is !null: UnsafeUnpin,
PhantomData<ArcInner<Semaphore>>: UnsafeUnpin,
*const ArcInner<Atomic<u64>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Atomic<u64>>>: UnsafeUnpin,
*const ArcInner<PreAuthRejectLog> is !null: UnsafeUnpin,
PhantomData<ArcInner<PreAuthRejectLog>>: UnsafeUnpin,
impl UnwindSafe for ServerAuthwhere
Arc<[u8]>: UnwindSafe,
Arc<str>: UnwindSafe,
Arc<Semaphore>: UnwindSafe,
Arc<Atomic<u64>>: UnwindSafe,
Arc<PreAuthRejectLog>: UnwindSafe,
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