Struct stabilizer::net::network_processor::NetworkProcessor
source · pub struct NetworkProcessor {
pub stack: NetworkReference,
/* private fields */
}
Expand description
Processor for managing network hardware.
Fields§
§stack: NetworkReference
Implementations§
source§impl NetworkProcessor
impl NetworkProcessor
sourcepub fn new(stack: NetworkReference, phy: EthernetPhy) -> Self
pub fn new(stack: NetworkReference, phy: EthernetPhy) -> Self
sourcepub fn handle_link(&mut self)
pub fn handle_link(&mut self)
Handle ethernet link connection status.
§Note
This may take non-trivial amounts of time to communicate with the PHY. As such, this should only be called as often as necessary (e.g. once per second or so).
sourcepub fn update(&mut self) -> UpdateState
pub fn update(&mut self) -> UpdateState
Auto Trait Implementations§
impl Freeze for NetworkProcessor
impl !RefUnwindSafe for NetworkProcessor
impl Send for NetworkProcessor
impl !Sync for NetworkProcessor
impl Unpin for NetworkProcessor
impl !UnwindSafe for NetworkProcessor
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