pub struct Auth<'u, 'p, 's> {
    pub user: &'u str,
    pub pass: &'p str,
    pub salt: &'s [u8],
    pub method: AuthMethod,
}Fields§
§user: &'u str§pass: &'p str§salt: &'s [u8]§method: AuthMethodTrait Implementations§
Source§impl<'u, 'p, 's> Request for Auth<'u, 'p, 's>
 
impl<'u, 'p, 's> Request for Auth<'u, 'p, 's>
const TYPE: IProtoType = IProtoType::Auth
type Response = ()
fn encode_body(&self, out: &mut impl Write) -> Result<(), Error>
fn decode_response_body( _in: &mut Cursor<Vec<u8>>, ) -> Result<Self::Response, Error>
fn encode_header( &self, out: &mut impl Write, sync: SyncIndex, ) -> Result<(), Error>
fn encode(&self, out: &mut impl Write, sync: SyncIndex) -> Result<(), Error>
Auto Trait Implementations§
impl<'u, 'p, 's> Freeze for Auth<'u, 'p, 's>
impl<'u, 'p, 's> RefUnwindSafe for Auth<'u, 'p, 's>
impl<'u, 'p, 's> Send for Auth<'u, 'p, 's>
impl<'u, 'p, 's> Sync for Auth<'u, 'p, 's>
impl<'u, 'p, 's> Unpin for Auth<'u, 'p, 's>
impl<'u, 'p, 's> UnwindSafe for Auth<'u, 'p, 's>
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