pub struct WlanApPolicyFacade { /* private fields */ }Implementations§
Source§impl WlanApPolicyFacade
 
impl WlanApPolicyFacade
pub fn new() -> Result<WlanApPolicyFacade, Error>
pub async fn start_access_point( &self, target_ssid: Vec<u8>, type_: SecurityType, credential: Credential, mode: ConnectivityMode, band: OperatingBand, ) -> Result<(), Error>
pub async fn stop_access_point( &self, target_ssid: Vec<u8>, type_: SecurityType, credential: Credential, ) -> Result<(), Error>
pub async fn stop_all_access_points(&self) -> Result<(), Error>
Sourcepub fn set_new_listener(&self) -> Result<(), Error>
 
pub fn set_new_listener(&self) -> Result<(), Error>
This function will set a new listener even if there is one because new listeners will get the most recent update immediately without waiting.
Sourcepub async fn get_update(&self) -> Result<Vec<AccessPointState>, Error>
 
pub async fn get_update(&self) -> Result<Vec<AccessPointState>, Error>
Wait for and return an AP update. If this is the first update gotten from the facade since the AP controller or a new update listener has been created, it will get an immediate status. After that, it will wait for a change and return a status when there has been a change since the last call to get_update. This call will hang if there are no updates. This function is not thread safe, so there should not be multiple get_update calls at the same time unless a new listener is set between them. There is no lock around the update_listener field of the facade in order to prevent a hanging get_update from blocking all future get_updates.
Trait Implementations§
Source§impl Debug for WlanApPolicyFacade
 
impl Debug for WlanApPolicyFacade
Source§impl Facade for WlanApPolicyFacade
 
impl Facade for WlanApPolicyFacade
Source§fn handle_request<'life0, 'async_trait>(
    &'life0 self,
    method: String,
    args: Value,
) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
 
fn handle_request<'life0, 'async_trait>(
    &'life0 self,
    method: String,
    args: Value,
) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
Auto Trait Implementations§
impl !Freeze for WlanApPolicyFacade
impl !RefUnwindSafe for WlanApPolicyFacade
impl Send for WlanApPolicyFacade
impl !Sync for WlanApPolicyFacade
impl Unpin for WlanApPolicyFacade
impl !UnwindSafe for WlanApPolicyFacade
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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
    D: ResourceDialect,
 
impl<T, D> Encode<Ambiguous1, D> for Twhere
    D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
    D: ResourceDialect,
 
impl<T, D> Encode<Ambiguous2, D> for Twhere
    D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
 
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
 
fn from_service_transport(handle: T) -> T
T to [Self]§impl<T> Instrument for T
 
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more