pub struct NetworkWatch { /* private fields */ }Expand description
One open store’s watch of the device’s network (§6.7): it starts as the store opens, already holding what the platform says, and stops as it closes. Each owner that acts on the network holds a view of it.
Implementations§
Source§impl NetworkWatch
impl NetworkWatch
Sourcepub fn start(
source: &NetworkSource,
bugs: &BugSinkRef,
) -> Result<Self, NetworkWatchError>
pub fn start( source: &NetworkSource, bugs: &BugSinkRef, ) -> Result<Self, NetworkWatchError>
Start watching, as source says. The state already holds what the
platform says now. A panic in what the platform’s callbacks run goes
to bugs.
Sourcepub fn unwatched() -> Self
pub fn unwatched() -> Self
A watch that hears nothing, for work that transfers no file the network holds: a read-only handle’s, and loading’s (api.md E4).
Sourcepub fn view(&self) -> NetworkView
pub fn view(&self) -> NetworkView
A view of the network, for an owner that acts on it.
Auto Trait Implementations§
impl Freeze for NetworkWatch
impl !RefUnwindSafe for NetworkWatch
impl Send for NetworkWatch
impl Sync for NetworkWatch
impl Unpin for NetworkWatch
impl UnsafeUnpin for NetworkWatch
impl !UnwindSafe for NetworkWatch
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