pub struct BackendAuthenticator;Expand description
Handles authentication to backend NNTP servers
Implementations§
Source§impl BackendAuthenticator
impl BackendAuthenticator
Sourcepub async fn forward_greeting<B, C>(
backend_stream: &mut B,
client_stream: &mut C,
buffer_pool: &BufferPool,
) -> Result<()>
pub async fn forward_greeting<B, C>( backend_stream: &mut B, client_stream: &mut C, buffer_pool: &BufferPool, ) -> Result<()>
Read and forward the backend server’s greeting to the client - generic over stream types
Sourcepub async fn authenticate_and_forward_greeting<B, C>(
backend_stream: &mut B,
client_stream: &mut C,
username: &str,
password: &str,
buffer_pool: &BufferPool,
) -> Result<()>
pub async fn authenticate_and_forward_greeting<B, C>( backend_stream: &mut B, client_stream: &mut C, username: &str, password: &str, buffer_pool: &BufferPool, ) -> Result<()>
Perform authentication and forward the greeting to the client - generic over stream types
Auto Trait Implementations§
impl Freeze for BackendAuthenticator
impl RefUnwindSafe for BackendAuthenticator
impl Send for BackendAuthenticator
impl Sync for BackendAuthenticator
impl Unpin for BackendAuthenticator
impl UnwindSafe for BackendAuthenticator
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