pub struct VolumeIo { /* private fields */ }
Implementations§
Source§impl VolumeIo
impl VolumeIo
pub async fn request_write( &mut self, data: Bytes, offset: u64, ) -> Result<VolumeIoWriteRequest, VolumeIoNoMoreRequests>
pub async fn request_read( &mut self, length: u64, offset: u64, ) -> Result<VolumeIoReadRequest, VolumeIoNoMoreRequests>
pub async fn request_flush( &mut self, ) -> Result<VolumeIoFlushRequest, VolumeIoNoMoreRequests>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VolumeIo
impl RefUnwindSafe for VolumeIo
impl Send for VolumeIo
impl Sync for VolumeIo
impl Unpin for VolumeIo
impl UnwindSafe for VolumeIo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request