Struct wlancfg_lib::access_point::AccessPoint
source · pub struct AccessPoint { /* private fields */ }
Implementations§
source§impl AccessPoint
impl AccessPoint
sourcepub fn new(
iface_manager: Arc<Mutex<dyn IfaceManagerApi + Send>>,
update_sender: ApListenerMessageSender,
ap_provider_lock: Arc<Mutex<()>>
) -> Self
pub fn new( iface_manager: Arc<Mutex<dyn IfaceManagerApi + Send>>, update_sender: ApListenerMessageSender, ap_provider_lock: Arc<Mutex<()>> ) -> Self
Creates a new, empty AccessPoint. The returned AccessPoint effectively represents the state in which no AP interface is available.
sourcepub async fn serve_provider_requests(
self,
requests: AccessPointProviderRequestStream
)
pub async fn serve_provider_requests( self, requests: AccessPointProviderRequestStream )
Serves the AccessPointProvider protocol. Only one caller is allowed to interact with an AccessPointController. This routine ensures that one active user has access at a time. Additional requests are terminated immediately.
sourcepub async fn serve_listener_requests(
self,
requests: AccessPointListenerRequestStream
)
pub async fn serve_listener_requests( self, requests: AccessPointListenerRequestStream )
Serves the AccessPointListener protocol.
Trait Implementations§
source§impl Clone for AccessPoint
impl Clone for AccessPoint
source§fn clone(&self) -> AccessPoint
fn clone(&self) -> AccessPoint
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for AccessPoint
impl !RefUnwindSafe for AccessPoint
impl Send for AccessPoint
impl Sync for AccessPoint
impl Unpin for AccessPoint
impl !UnwindSafe for AccessPoint
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