Struct rust_rcs_client::context::Context
source · pub struct Context {
pub fs_root_dir: String,
/* private fields */
}
Fields§
§fs_root_dir: String
Implementations§
source§impl Context
impl Context
pub fn new(fs_root_dir: &str, rt: Arc<Runtime>) -> Context
pub fn get_fs_root_dir(&self) -> &str
pub fn get_dns_client(&self) -> Arc<DnsClient>
pub fn get_http_client(&self) -> Arc<HttpClient>
pub fn get_tls_client_config(&self) -> Arc<ClientConfig>
pub fn get_security_context(&self) -> Arc<SecurityContext>
pub fn subscribe_otp(&self) -> Receiver<String>
pub fn broadcast_otp(&self, otp: &str)
pub fn make_gba_context( &self, imsi: &str, mcc: CountryCode, mnc: NetworkCode, subscription_id: i32 ) -> GbaContext
Auto Trait Implementations§
impl !RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl !UnwindSafe for Context
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