Struct State
#[repr(transparent)]pub struct State(DataCallState);๐Deprecated:
use ql-wds
Tuple Fieldsยง
ยง0: DataCallState๐Deprecated:
use ql-wds
Implementationsยง
ยงimpl State
impl State
pub const fn new() -> Self
๐Deprecated: use ql-wds
pub const fn new() -> Self
use ql-wds
Creates a new state with default values.
const fn from_sys_ref(state: &DataCallState) -> &Self
๐Deprecated:
use ql-wds
pub const fn profile(&self) -> u8
๐Deprecated:
use ql-wds
pub const fn profile_idx(&self) -> u8
๐Deprecated since 1.1.0:
Use profile() instead
pub const fn ip_family(&self) -> IpFamily
๐Deprecated:
use ql-wds
pub fn name(&self) -> Result<&str, StringError>
๐Deprecated:
use ql-wds
pub const fn status(&self) -> Status
๐Deprecated:
use ql-wds
const fn err(&self) -> DataCallError
๐Deprecated:
use ql-wds
pub const fn is_connected(&self) -> bool
๐Deprecated:
use ql-wds
pub fn ipv4_status(&self) -> Option<&AddressStatusV4>
๐Deprecated: use ql-wds
pub fn ipv4_status(&self) -> Option<&AddressStatusV4>
use ql-wds
Returns the IPv4 status.
If the IP family is not IPv4, this method returns None.
pub fn ipv6_status(&self) -> Option<&AddressStatusV6>
๐Deprecated: use ql-wds
pub fn ipv6_status(&self) -> Option<&AddressStatusV6>
use ql-wds
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 UnsafeUnpin 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