pub struct PhySynchronousProxy { /* private fields */ }
Implementations§
Source§impl PhySynchronousProxy
impl PhySynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<PhyEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<PhyEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
pub fn get_supported_mac_roles( &self, ___deadline: MonotonicInstant, ) -> Result<PhyGetSupportedMacRolesResult, Error>
pub fn create_iface( &self, req: CreateIfaceRequest, ___deadline: MonotonicInstant, ) -> Result<PhyCreateIfaceResult, Error>
pub fn destroy_iface( &self, req: &DestroyIfaceRequest, ___deadline: MonotonicInstant, ) -> Result<PhyDestroyIfaceResult, Error>
pub fn set_country( &self, req: &CountryCode, ___deadline: MonotonicInstant, ) -> Result<i32, Error>
pub fn get_country( &self, ___deadline: MonotonicInstant, ) -> Result<PhyGetCountryResult, Error>
pub fn clear_country(&self, ___deadline: MonotonicInstant) -> Result<i32, Error>
pub fn set_power_save_mode( &self, req: PowerSaveType, ___deadline: MonotonicInstant, ) -> Result<i32, Error>
pub fn get_power_save_mode( &self, ___deadline: MonotonicInstant, ) -> Result<PhyGetPowerSaveModeResult, Error>
Trait Implementations§
Source§impl Debug for PhySynchronousProxy
impl Debug for PhySynchronousProxy
Source§impl SynchronousProxy for PhySynchronousProxy
impl SynchronousProxy for PhySynchronousProxy
Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for PhySynchronousProxy
impl RefUnwindSafe for PhySynchronousProxy
impl Send for PhySynchronousProxy
impl Sync for PhySynchronousProxy
impl Unpin for PhySynchronousProxy
impl UnwindSafe for PhySynchronousProxy
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