File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -138,6 +138,7 @@ pub enum ReceiveError {
138138 ReceivePacket ( #[ from] PacketRecvError ) ,
139139}
140140
141+ /// A receiver that can receive files
141142pub struct Receiver {
142143 /// Receiver arguments
143144 args : ReceiverArgs ,
@@ -147,6 +148,7 @@ pub struct Receiver {
147148 endpoint : Endpoint ,
148149}
149150
151+ /// Arguments for the receiver
150152pub struct ReceiverArgs {
151153 /// Resume interrupted transfer
152154 pub resume : bool ,
Original file line number Diff line number Diff line change 11#![ allow( clippy:: suspicious_open_options) ]
22
33use std:: {
4- io,
54 net:: { SocketAddr , UdpSocket } ,
65 path:: PathBuf ,
76} ;
@@ -116,6 +115,7 @@ pub enum SendError {
116115 ReceivePacket ( #[ from] PacketRecvError ) ,
117116}
118117
118+ /// A client that can send files
119119pub struct Sender {
120120 /// Sender arguments
121121 args : SenderArgs ,
@@ -125,6 +125,7 @@ pub struct Sender {
125125 endpoint : Endpoint ,
126126}
127127
128+ /// Arguments for the sender
128129pub struct SenderArgs {
129130 /// Files/Directories to send
130131 pub files : Vec < PathBuf > ,
You can’t perform that action at this time.
0 commit comments