pub struct Init<Io> { /* private fields */ }Expand description
Initialization stage of sasl negotiation
Implementations§
Source§impl<Io> Init<Io>where
Io: AsyncRead + AsyncWrite,
impl<Io> Init<Io>where
Io: AsyncRead + AsyncWrite,
Sourcepub fn initial_response(&self) -> Option<&[u8]>
pub fn initial_response(&self) -> Option<&[u8]>
Sasl initial response
Sourcepub async fn challenge_with(
self,
challenge: Bytes,
) -> Result<Response<Io>, ServerError<()>>
pub async fn challenge_with( self, challenge: Bytes, ) -> Result<Response<Io>, ServerError<()>>
Initiate sasl challenge with challenge payload
Trait Implementations§
Auto Trait Implementations§
impl<Io> !Freeze for Init<Io>
impl<Io> !RefUnwindSafe for Init<Io>
impl<Io> !Send for Init<Io>
impl<Io> !Sync for Init<Io>
impl<Io> Unpin for Init<Io>
impl<Io> !UnwindSafe for Init<Io>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more