We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0f2aa3 commit e2845c6Copy full SHA for e2845c6
functional/generics-type-classes.md
@@ -127,16 +127,19 @@ mod proto_trait {
127
type AuthInfo;
128
fn auth_info(&self) -> Self::AuthInfo;
129
}
130
- pub struct Nfs(nfs::AuthInfo, PathBuf); // the mount point metadata
+ pub struct Nfs {
131
+ auth: nfs::AuthInfo,
132
+ mount_point: PathBuf,
133
+ }
134
impl Nfs {
135
pub(crate) fn mount_point(&self) -> &Path {
- &self.1
136
+ &self.mount_point
137
138
139
impl ProtoKind for Nfs {
140
type AuthInfo = nfs::AuthInfo;
141
fn auth_info(&self) -> Self::AuthInfo {
- self.0.clone()
142
+ self.auth.clone()
143
144
145
pub struct Bootp(); // no additional metadata
0 commit comments