pub struct StateRunner<'d> { /* private fields */ }
Expand description
State runner.
Holds the shared state of the channel such as link state.
Implementations§
Source§impl<'d> StateRunner<'d>
impl<'d> StateRunner<'d>
Sourcepub fn set_link_state(&self, state: LinkState)
pub fn set_link_state(&self, state: LinkState)
Set link state.
Sourcepub fn set_hardware_address(&self, address: HardwareAddress)
pub fn set_hardware_address(&self, address: HardwareAddress)
Set the hardware address.
Trait Implementations§
Source§impl<'d> Clone for StateRunner<'d>
impl<'d> Clone for StateRunner<'d>
Source§fn clone(&self) -> StateRunner<'d>
fn clone(&self) -> StateRunner<'d>
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 moreimpl<'d> Copy for StateRunner<'d>
Auto Trait Implementations§
impl<'d> Freeze for StateRunner<'d>
impl<'d> !RefUnwindSafe for StateRunner<'d>
impl<'d> !Send for StateRunner<'d>
impl<'d> !Sync for StateRunner<'d>
impl<'d> Unpin for StateRunner<'d>
impl<'d> !UnwindSafe for StateRunner<'d>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)