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 {
123123mod proto_trait {
124124 use std :: path :: {Path , PathBuf };
125125 use super :: {bootp, nfs};
126+
126127 pub (crate ) trait ProtoKind {
127128 type AuthInfo ;
128129 fn auth_info (& self ) -> Self :: AuthInfo ;
129130 }
131+
130132 pub struct Nfs {
131133 auth : nfs :: AuthInfo ,
132134 mount_point : PathBuf ,
133135 }
136+
134137 impl Nfs {
135138 pub (crate ) fn mount_point (& self ) -> & Path {
136139 & self . mount_point
137140 }
138141 }
142+
139143 impl ProtoKind for Nfs {
140144 type AuthInfo = nfs :: AuthInfo ;
141145 fn auth_info (& self ) -> Self :: AuthInfo {
142146 self . auth. clone ()
143147 }
144148 }
149+
145150 pub struct Bootp (); // no additional metadata
151+
146152 impl ProtoKind for Bootp {
147153 type AuthInfo = bootp :: AuthInfo ;
148154 fn auth_info (& self ) -> Self :: AuthInfo {
You can’t perform that action at this time.
0 commit comments