Skip to content

Commit 9a4efcd

Browse files
committedJul 14, 2017
LoopbackInterface → Loopback.
1 parent 8ada283 commit 9a4efcd

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed
 

‎src/phy/loopback.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@ use super::Device;
1616

1717
/// A loopback interface.
1818
#[derive(Debug)]
19-
pub struct LoopbackInterface(Rc<RefCell<VecDeque<Vec<u8>>>>);
19+
pub struct Loopback(Rc<RefCell<VecDeque<Vec<u8>>>>);
2020

21-
impl LoopbackInterface {
21+
impl Loopback {
2222
/// Creates a loopback interface.
2323
///
2424
/// Every packet transmitted through this interface will be received through it
2525
/// 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())))
2828
}
2929
}
3030

31-
impl Device for LoopbackInterface {
31+
impl Device for Loopback {
3232
type RxBuffer = Vec<u8>;
3333
type TxBuffer = TxBuffer;
3434

‎src/phy/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ mod tap_interface;
118118
pub use self::tracer::Tracer;
119119
pub use self::fault_injector::FaultInjector;
120120
#[cfg(any(feature = "std", feature = "collections"))]
121-
pub use self::loopback::LoopbackInterface;
121+
pub use self::loopback::Loopback;
122122
#[cfg(any(feature = "raw_socket"))]
123123
pub use self::raw_socket::RawSocket;
124124
#[cfg(all(feature = "tap_interface", target_os = "linux"))]

0 commit comments

Comments
 (0)