[Add] Proper User managment

This commit is contained in:
Alex Emmet 2026-09-02 22:42:25 +02:00
commit b38b68ad96
No known key found for this signature in database
38 changed files with 4331 additions and 1065 deletions

View file

@ -1,5 +1,5 @@
use async_trait::async_trait;
use mtp::codec::CommunicationValue;
use mtp::codec::{CommunicationType, CommunicationValue};
use std::time::Duration;
#[derive(Clone, Debug, PartialEq, Eq)]
@ -7,6 +7,7 @@ pub enum OmikronError {
Disconnected(String),
Timeout(String),
Authentication(String),
Rejected(CommunicationType, String),
Internal(String),
}
@ -16,6 +17,7 @@ impl std::fmt::Display for OmikronError {
Self::Disconnected(v)
| Self::Timeout(v)
| Self::Authentication(v)
| Self::Rejected(_, v)
| Self::Internal(v) => f.write_str(v),
}
}