pub async fn write_at(
        &self,
        offset: u64,
        buf: &DmaBuf,
    ) -> Result<usize, ChildIoError> {
        match self.bdev_handle.as_ref() {
            Some(desc) => {
                Ok(desc.write_at(offset, buf).await.context(WriteError {
                    name: self.name.clone(),
                })?)
            }
            None => Err(ChildIoError::InvalidDescriptor {
                name: self.name.clone(),
            }),
        }
    }
/// write the contents of the buffer to this child
write the contents of the buffer to this child
write the contents of the buffer to this child
pub async fn write_at(
        &self,
        offset: u64,
        buf: &DmaBuf,
    ) -> Result<usize, ChildIoError> {
        match self.bdev_handle.as_ref() {
            Some(desc) => {
                Ok(desc.write_at(offset, buf).await.context(WriteError {
                    name: self.name.clone(),
                })?)
            }
            None => Err(ChildIoError::InvalidDescriptor {
                name: self.name.clone(),
            }),
        }
    }
pub async fn write_at ( & self , offset : u64 , buf : & DmaBuf , ) -> Result < usize , ChildIoError > { match self . bdev_handle . as_ref ( ) { Some ( desc ) => { Ok ( desc . write_at ( offset , buf ) . await . context ( WriteError { name : self . name . clone ( ) , } ) ? ) } None => Err ( ChildIoError :: InvalidDescriptor { name : self . name . clone ( ) , } ) , } }
write the contents of the buffer to this child
write the contents of the buffer to this child
&self
offset
u64
buf
&DmaBuf
&self
offset
u64
buf
&DmaBuf