pub enum StatusWatcherRequest {
WatchStatus {
responder: StatusWatcherWatchStatusResponder,
},
}
Expand description
Provides a way to receive updates on port status changes.
Variants§
WatchStatus
WatchStatus
blocks until the port’s status has changed.
The first call to WatchStatus
returns immediately with the current
port status, subsequent calls complete when the port status differs from
the last one that was returned through this StatusWatcher
.
If StatusWatcher
was created with a buffer value larger than 1,
WatchStatus
may return a queued status change, depending on how many
status changed happened since the last call to WatchStatus
.
- response
device_status
the most recent port status.
Fields
§
responder: StatusWatcherWatchStatusResponder
Implementations§
Source§impl StatusWatcherRequest
impl StatusWatcherRequest
pub fn into_watch_status(self) -> Option<StatusWatcherWatchStatusResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StatusWatcherRequest
impl !RefUnwindSafe for StatusWatcherRequest
impl Send for StatusWatcherRequest
impl Sync for StatusWatcherRequest
impl Unpin for StatusWatcherRequest
impl !UnwindSafe for StatusWatcherRequest
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