pub struct FtpMockServer { /* private fields */ }Expand description
A MockProtocolServer wrapper around FtpServer.
Constructs the FTP server (including VFS and spec registry), then
delegates to FtpServer::start with shutdown-signal integration.
Implementations§
Trait Implementations§
Source§impl MockProtocolServer for FtpMockServer
impl MockProtocolServer for FtpMockServer
Source§fn start<'life0, 'async_trait>(
&'life0 self,
shutdown: Receiver<()>,
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn start<'life0, 'async_trait>(
&'life0 self,
shutdown: Receiver<()>,
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Start the server, running until the shutdown signal is received. Read more
Source§fn description(&self) -> String
fn description(&self) -> String
Human-readable description for logging (e.g., “gRPC server on port 50051”).
Auto Trait Implementations§
impl Freeze for FtpMockServer
impl RefUnwindSafe for FtpMockServer
impl Send for FtpMockServer
impl Sync for FtpMockServer
impl Unpin for FtpMockServer
impl UnsafeUnpin for FtpMockServer
impl UnwindSafe for FtpMockServer
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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