netdevice_client/
lib.rs

1// Copyright 2021 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5//! Client library for [`fidl_fuchsia_hardware_network`]. Contains helpers
6//! for sending frames to and receiving frames from L2/L3 network devices.
7
8#![deny(missing_docs)]
9pub mod client;
10pub mod error;
11pub mod port_slab;
12pub mod session;
13
14pub use client::{Client, DevicePortEvent, PortStatus};
15pub use error::{Error, Result};
16pub use port_slab::PortSlab;
17pub use session::{
18    Buffer, Config, DerivableConfig, DeviceInfo, Port, Rx, RxLease, Session, Task, Tx,
19};
20
21/// Alias for receive buffer.
22pub type RxBuffer = Buffer<Rx>;
23/// Alias for transmit buffer.
24pub type TxBuffer = Buffer<Tx>;