Struct DataCallConfigBuilder
pub struct DataCallConfigBuilder<'a> {
inner: Box<CallConfigInfo>,
apn: Option<&'a str>,
username: Option<&'a str>,
password: Option<&'a str>,
}Fields§
§inner: Box<CallConfigInfo>§apn: Option<&'a str>§username: Option<&'a str>§password: Option<&'a str>Implementations§
§impl<'a> DataCallConfigBuilder<'a>
impl<'a> DataCallConfigBuilder<'a>
fn new() -> Self
pub fn build(&self) -> Result<DataCallConfig>
fn ip_family(&mut self, ip_family: IpFamily) -> &mut Self
pub fn ipv4(&mut self) -> &mut Self
pub fn profile(&mut self, profile: i8) -> &mut Self
pub fn profile(&mut self, profile: i8) -> &mut Self
Sets the profile for both CDMA and UMTS.
If not explicitly set, the default value is 0.
fn technology_preference(&mut self, preference: TechPref) -> &mut Self
pub fn auto(&mut self) -> &mut Self
pub fn apn(&mut self, apn: &'a str) -> &mut Self
pub fn username(&mut self, username: &'a str) -> &mut Self
pub fn password(&mut self, password: &'a str) -> &mut Self
Auto Trait Implementations§
impl<'a> Freeze for DataCallConfigBuilder<'a>
impl<'a> RefUnwindSafe for DataCallConfigBuilder<'a>
impl<'a> Send for DataCallConfigBuilder<'a>
impl<'a> Sync for DataCallConfigBuilder<'a>
impl<'a> Unpin for DataCallConfigBuilder<'a>
impl<'a> UnwindSafe for DataCallConfigBuilder<'a>
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