pub struct Server { /* private fields */ }Implementations§
Source§impl Server
impl Server
pub fn new(confirm_code: Option<String>) -> Self
pub fn register_client( &mut self, client: &ClientRegistration, ) -> Result<String, ServerError>
pub fn get_salt_from_id(&self, id: &str) -> Result<Vec<u8>, ServerError>
pub fn auth_client( &mut self, id: &str, autentication_key: &[u8], ) -> Result<(KeysPayload, SessionIdEncrypted), ServerError>
pub fn check_session_id( &self, given_session_id: &SessionId, ) -> Result<(), ServerError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Server
impl RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl UnsafeUnpin for Server
impl UnwindSafe for Server
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