Struct State
#[repr(transparent)]pub struct State(DataCallState);Tuple Fields§
§0: DataCallStateImplementations§
§impl State
impl State
const fn from_sys_ref(state: &DataCallState) -> &Self
pub const fn profile_idx(&self) -> u8
pub const fn ip_family(&self) -> IpFamily
pub fn name(&self) -> Result<&str, StringError>
pub const fn status(&self) -> Status
const fn err(&self) -> DataCallError
pub const fn is_connected(&self) -> bool
pub fn ipv4_status(&self) -> Option<&AddressStatusV4>
pub fn ipv4_status(&self) -> Option<&AddressStatusV4>
Returns the IPv4 status.
If the IP family is not IPv4, this method returns None.
pub fn ipv6_status(&self) -> Option<&AddressStatusV6>
pub fn ipv6_status(&self) -> Option<&AddressStatusV6>
Returns the IPv6 status.
If the IP family is not IPv6, this method returns None.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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