@@ -180,7 +180,7 @@ impl<'a, T> Iterator for AncillaryDataIter<'a, T> {
180
180
) ) ]
181
181
#[ unstable( feature = "unix_socket_ancillary_data" , issue = "none" ) ]
182
182
#[ derive( Clone ) ]
183
- pub struct UCred ( libc:: ucred ) ;
183
+ pub struct SocketCred ( libc:: ucred ) ;
184
184
185
185
#[ cfg( any(
186
186
doc,
@@ -196,13 +196,13 @@ pub struct UCred(libc::ucred);
196
196
target_os = "openbsd" ,
197
197
target_env = "uclibc" ,
198
198
) ) ]
199
- impl UCred {
199
+ impl SocketCred {
200
200
/// Create a Unix credential struct.
201
201
///
202
202
/// PID, UID and GID is set to 0.
203
203
#[ unstable( feature = "unix_socket_ancillary_data" , issue = "none" ) ]
204
- pub fn new ( ) -> UCred {
205
- UCred ( libc:: ucred { pid : 0 , uid : 0 , gid : 0 } )
204
+ pub fn new ( ) -> SocketCred {
205
+ SocketCred ( libc:: ucred { pid : 0 , uid : 0 , gid : 0 } )
206
206
}
207
207
208
208
/// Set the PID.
@@ -293,10 +293,10 @@ pub struct ScmCredentials<'a>(AncillaryDataIter<'a, libc::ucred>);
293
293
) ) ]
294
294
#[ unstable( feature = "unix_socket_ancillary_data" , issue = "none" ) ]
295
295
impl < ' a > Iterator for ScmCredentials < ' a > {
296
- type Item = UCred ;
296
+ type Item = SocketCred ;
297
297
298
- fn next ( & mut self ) -> Option < UCred > {
299
- Some ( UCred ( self . 0 . next ( ) ?) )
298
+ fn next ( & mut self ) -> Option < SocketCred > {
299
+ Some ( SocketCred ( self . 0 . next ( ) ?) )
300
300
}
301
301
}
302
302
@@ -606,7 +606,7 @@ impl<'a> SocketAncillary<'a> {
606
606
target_env = "uclibc" ,
607
607
) ) ]
608
608
#[ unstable( feature = "unix_socket_ancillary_data" , issue = "none" ) ]
609
- pub fn add_creds ( & mut self , creds : & [ UCred ] ) -> bool {
609
+ pub fn add_creds ( & mut self , creds : & [ SocketCred ] ) -> bool {
610
610
self . truncated = false ;
611
611
add_to_ancillary_data (
612
612
& mut self . buffer ,
0 commit comments