File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -123,26 +123,32 @@ mod bootp {
123
123
mod proto_trait {
124
124
use std :: path :: {Path , PathBuf };
125
125
use super :: {bootp, nfs};
126
+
126
127
pub (crate ) trait ProtoKind {
127
128
type AuthInfo ;
128
129
fn auth_info (& self ) -> Self :: AuthInfo ;
129
130
}
131
+
130
132
pub struct Nfs {
131
133
auth : nfs :: AuthInfo ,
132
134
mount_point : PathBuf ,
133
135
}
136
+
134
137
impl Nfs {
135
138
pub (crate ) fn mount_point (& self ) -> & Path {
136
139
& self . mount_point
137
140
}
138
141
}
142
+
139
143
impl ProtoKind for Nfs {
140
144
type AuthInfo = nfs :: AuthInfo ;
141
145
fn auth_info (& self ) -> Self :: AuthInfo {
142
146
self . auth. clone ()
143
147
}
144
148
}
149
+
145
150
pub struct Bootp (); // no additional metadata
151
+
146
152
impl ProtoKind for Bootp {
147
153
type AuthInfo = bootp :: AuthInfo ;
148
154
fn auth_info (& self ) -> Self :: AuthInfo {
You can’t perform that action at this time.
0 commit comments