mptcp_pm/address/handle.rs
1// SPDX-License-Identifier: MIT
2
3use crate::{MptcpPathManagerAddressGetRequest, MptcpPathManagerHandle};
4
5pub struct MptcpPathManagerAddressHandle(MptcpPathManagerHandle);
6
7impl MptcpPathManagerAddressHandle {
8 pub fn new(handle: MptcpPathManagerHandle) -> Self {
9 MptcpPathManagerAddressHandle(handle)
10 }
11
12 /// Retrieve the multipath-TCP addresses
13 /// (equivalent to `ip mptcp endpoint show`)
14 pub fn get(&mut self) -> MptcpPathManagerAddressGetRequest {
15 MptcpPathManagerAddressGetRequest::new(self.0.clone())
16 }
17}