pub struct IpStack {
pub handle: JoinHandle<Result<()>>,
/* private fields */
}Fields§
§handle: JoinHandle<Result<()>>Implementations§
source§impl IpStack
impl IpStack
pub fn new<D>(config: IpStackConfig, device: D) -> IpStack
pub async fn accept(&mut self) -> Result<IpStackStream, IpStackError>
Auto Trait Implementations§
impl Freeze for IpStack
impl !RefUnwindSafe for IpStack
impl Send for IpStack
impl Sync for IpStack
impl Unpin for IpStack
impl !UnwindSafe for IpStack
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more