pub struct TftpClient { /* private fields */ }Expand description
TFTP client
Implementations§
Source§impl TftpClient
impl TftpClient
pub fn new(config: TftpConfig) -> Self
Sourcepub async fn download(
&self,
server: &Ipv4Addr,
filename: &str,
destination: &Path,
) -> Result<()>
pub async fn download( &self, server: &Ipv4Addr, filename: &str, destination: &Path, ) -> Result<()>
Download a file from TFTP server
Auto Trait Implementations§
impl Freeze for TftpClient
impl RefUnwindSafe for TftpClient
impl Send for TftpClient
impl Sync for TftpClient
impl Unpin for TftpClient
impl UnwindSafe for TftpClient
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more