pub struct Client {
pub connect_req: ParsedConnectRequest,
pub iface_mac: MacAddr,
pub client_capabilities: ClientCapabilities,
pub connect_timeout: Option<EventHandle>,
/* private fields */
}
Expand description
A STA running in Client mode. The Client STA is in its early development process and does not yet manage its internal state machine or track negotiated capabilities.
Fields§
§connect_req: ParsedConnectRequest
§iface_mac: MacAddr
§client_capabilities: ClientCapabilities
§connect_timeout: Option<EventHandle>
Implementations§
Source§impl Client
impl Client
pub fn new( connect_req: ParsedConnectRequest, iface_mac: MacAddr, client_capabilities: ClientCapabilities, ) -> Self
pub fn ssid(&self) -> &Ssid
pub fn bssid(&self) -> Bssid
pub fn beacon_period(&self) -> MonotonicDuration
pub fn eapol_required(&self) -> bool
pub fn bind<'a, D>( &'a mut self, ctx: &'a mut Context<D>, scanner: &'a mut Scanner, channel_state: &'a mut ChannelState, ) -> BoundClient<'a, D>
Auto Trait Implementations§
impl Freeze for Client
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnwindSafe for Client
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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
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>
Converts
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>
Converts
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