pub struct AuthResponse(/* private fields */);Expand description
AuthResponse message:
+--------+
| METHOD |
+--------+
| 1 |
+--------+
Implementations§
Source§impl AuthResponse
impl AuthResponse
Sourcepub fn new(method: AuthMethod) -> AuthResponse
pub fn new(method: AuthMethod) -> AuthResponse
Create an AuthMethod.
Sourcepub async fn read(reader: impl AsyncRead + Unpin) -> Result<AuthResponse>
pub async fn read(reader: impl AsyncRead + Unpin) -> Result<AuthResponse>
Read AuthResponse from AsyncRead.
Sourcepub async fn write(&self, writer: impl AsyncWrite + Unpin) -> Result<()>
pub async fn write(&self, writer: impl AsyncWrite + Unpin) -> Result<()>
Write AuthResponse to AsyncWrite.
Sourcepub fn method(&self) -> AuthMethod
pub fn method(&self) -> AuthMethod
Get method.
Trait Implementations§
Source§impl Clone for AuthResponse
impl Clone for AuthResponse
Source§fn clone(&self) -> AuthResponse
fn clone(&self) -> AuthResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuthResponse
impl Debug for AuthResponse
Source§impl FromIO for AuthResponse
impl FromIO for AuthResponse
Source§impl PartialEq for AuthResponse
impl PartialEq for AuthResponse
impl Eq for AuthResponse
impl StructuralPartialEq for AuthResponse
Auto Trait Implementations§
impl Freeze for AuthResponse
impl RefUnwindSafe for AuthResponse
impl Send for AuthResponse
impl Sync for AuthResponse
impl Unpin for AuthResponse
impl UnwindSafe for AuthResponse
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