#[non_exhaustive]pub enum SecurityEvent {
AuthenticationFailed {
peer: SocketAddr,
mount: Option<MountId>,
},
RateLimited {
peer: SocketAddr,
},
TlsHandshakeFailed {
peer: SocketAddr,
error: Arc<str>,
},
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for SecurityEvent
impl Clone for SecurityEvent
Auto Trait Implementations§
impl Forget for SecurityEvent
impl Freeze for SecurityEvent
impl Move for SecurityEvent
impl RefUnwindSafe for SecurityEvent
impl Send for SecurityEvent
impl Sync for SecurityEvent
impl Unpin for SecurityEvent
impl UnsafeUnpin for SecurityEvent
impl UnwindSafe for SecurityEvent
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