pub struct BlockSynchronousProxy { /* private fields */ }
Implementations§
Source§impl BlockSynchronousProxy
impl BlockSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<BlockEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<BlockEvent, 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 get_info(
&self,
___deadline: MonotonicInstant,
) -> Result<BlockGetInfoResult, Error>
pub fn get_info( &self, ___deadline: MonotonicInstant, ) -> Result<BlockGetInfoResult, Error>
Get information about the underlying block device.
Sourcepub fn get_stats(
&self,
clear: bool,
___deadline: MonotonicInstant,
) -> Result<BlockGetStatsResult, Error>
pub fn get_stats( &self, clear: bool, ___deadline: MonotonicInstant, ) -> Result<BlockGetStatsResult, Error>
Returns stats about block device operations. Setting clear
will reset stats counters.
Sourcepub fn open_session(
&self,
session: ServerEnd<SessionMarker>,
) -> Result<(), Error>
pub fn open_session( &self, session: ServerEnd<SessionMarker>, ) -> Result<(), Error>
Opens a new FIFO-based session on the block device.
Trait Implementations§
Source§impl Debug for BlockSynchronousProxy
impl Debug for BlockSynchronousProxy
Source§impl SynchronousProxy for BlockSynchronousProxy
impl SynchronousProxy for BlockSynchronousProxy
Source§type Proxy = BlockProxy
type Proxy = BlockProxy
The async proxy for the same protocol.
Source§type Protocol = BlockMarker
type Protocol = BlockMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for BlockSynchronousProxy
impl RefUnwindSafe for BlockSynchronousProxy
impl Send for BlockSynchronousProxy
impl Sync for BlockSynchronousProxy
impl Unpin for BlockSynchronousProxy
impl UnwindSafe for BlockSynchronousProxy
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