pub struct Server { /* private fields */ }
Expand description
Server struct
is used for handling incoming TFTP requests.
This struct
is meant to be created by Server::new()
. See its
documentation for more.
§Example
// Create the TFTP server.
use tftpd::{Config, Server};
let args = ["/", "-p", "1234"].iter().map(|s| s.to_string());
let config = Config::new(args).unwrap();
let server = Server::new(&config).unwrap();
Implementations§
Auto Trait Implementations§
impl Freeze for Server
impl RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl UnwindSafe for Server
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