pub struct RemoteBlockClientSync { /* private fields */ }
Implementations§
Source§impl RemoteBlockClientSync
impl RemoteBlockClientSync
Sourcepub fn new(client_end: ClientEnd<BlockMarker>) -> Result<Self, Status>
pub fn new(client_end: ClientEnd<BlockMarker>) -> Result<Self, Status>
Returns a connection to a remote block device via the given channel, but spawns a separate thread for polling the fifo which makes it work in cases where no executor is configured for the calling thread.
pub fn attach_vmo(&self, vmo: &Vmo) -> Result<VmoId, Status>
pub fn detach_vmo(&self, vmo_id: VmoId) -> Result<(), Status>
pub fn read_at( &self, buffer_slice: MutableBufferSlice<'_>, device_offset: u64, ) -> Result<(), Status>
pub fn write_at( &self, buffer_slice: BufferSlice<'_>, device_offset: u64, ) -> Result<(), Status>
pub fn flush(&self) -> Result<(), Status>
pub fn close(&self) -> Result<(), Status>
pub fn block_size(&self) -> u32
pub fn block_count(&self) -> u64
pub fn is_connected(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RemoteBlockClientSync
impl !RefUnwindSafe for RemoteBlockClientSync
impl Send for RemoteBlockClientSync
impl Sync for RemoteBlockClientSync
impl Unpin for RemoteBlockClientSync
impl UnwindSafe for RemoteBlockClientSync
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