File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -16,19 +16,19 @@ use super::Device;
16
16
17
17
/// A loopback interface.
18
18
#[ derive( Debug ) ]
19
- pub struct LoopbackInterface ( Rc < RefCell < VecDeque < Vec < u8 > > > > ) ;
19
+ pub struct Loopback ( Rc < RefCell < VecDeque < Vec < u8 > > > > ) ;
20
20
21
- impl LoopbackInterface {
21
+ impl Loopback {
22
22
/// Creates a loopback interface.
23
23
///
24
24
/// Every packet transmitted through this interface will be received through it
25
25
/// in FIFO order.
26
- pub fn new ( ) -> LoopbackInterface {
27
- LoopbackInterface ( Rc :: new ( RefCell :: new ( VecDeque :: new ( ) ) ) )
26
+ pub fn new ( ) -> Loopback {
27
+ Loopback ( Rc :: new ( RefCell :: new ( VecDeque :: new ( ) ) ) )
28
28
}
29
29
}
30
30
31
- impl Device for LoopbackInterface {
31
+ impl Device for Loopback {
32
32
type RxBuffer = Vec < u8 > ;
33
33
type TxBuffer = TxBuffer ;
34
34
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ mod tap_interface;
118
118
pub use self :: tracer:: Tracer ;
119
119
pub use self :: fault_injector:: FaultInjector ;
120
120
#[ cfg( any( feature = "std" , feature = "collections" ) ) ]
121
- pub use self :: loopback:: LoopbackInterface ;
121
+ pub use self :: loopback:: Loopback ;
122
122
#[ cfg( any( feature = "raw_socket" ) ) ]
123
123
pub use self :: raw_socket:: RawSocket ;
124
124
#[ cfg( all( feature = "tap_interface" , target_os = "linux" ) ) ]
You can’t perform that action at this time.
0 commit comments