pub enum BlockWatcherRequest {
Pause {
responder: BlockWatcherPauseResponder,
},
Resume {
responder: BlockWatcherResumeResponder,
},
}
Expand description
Manages the block watcher. TODO(https://fxbug.dev/42061696): Gracefully handle multiple users of the BlockWatcher API.
Variants§
Pause
Pauses the block watcher. This will return when the block watcher has stopped processing new device events.
Returns ZX_ERR_BAD_STATE if the block watcher is paused more than once.
Fields
§
responder: BlockWatcherPauseResponder
Resume
Resumes the block watcher. This will return when the block watcher is once again processing new device events.
Returns ZX_ERR_BAD_STATE if the watcher isn’t paused.
Fields
§
responder: BlockWatcherResumeResponder
Implementations§
source§impl BlockWatcherRequest
impl BlockWatcherRequest
pub fn into_pause(self) -> Option<BlockWatcherPauseResponder>
pub fn into_resume(self) -> Option<BlockWatcherResumeResponder>
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 BlockWatcherRequest
impl !RefUnwindSafe for BlockWatcherRequest
impl Send for BlockWatcherRequest
impl Sync for BlockWatcherRequest
impl Unpin for BlockWatcherRequest
impl !UnwindSafe for BlockWatcherRequest
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