Struct fidl_fuchsia_fs::AdminSynchronousProxy
source · pub struct AdminSynchronousProxy { /* private fields */ }
Implementations§
source§impl AdminSynchronousProxy
impl AdminSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(&self, deadline: Time) -> Result<AdminEvent, Error>
pub fn wait_for_event(&self, deadline: Time) -> Result<AdminEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
sourcepub fn shutdown(&self, ___deadline: Time) -> Result<(), Error>
pub fn shutdown(&self, ___deadline: Time) -> Result<(), Error>
Shuts down the filesystem. Once the filesystem receives the shutdown request, it will complete any active requests before terminating, but will not respond to new requests. This call blocks until all open connections to the filesystem are terminated and any underlying block devices or other owned channels are released, then it responds to this request and closes this channel.