/// read from this child device into the given buffer
read from this child device into the given buffer
read from this child device into the given buffer
pub async fn read_at(
        &self,
        offset: u64,
        buf: &mut DmaBuf,
    ) -> Result<usize, ChildIoError> {
        match self.bdev_handle.as_ref() {
            Some(desc) => {
                Ok(desc.read_at(offset, buf).await.context(ReadError {
                    name: self.name.clone(),
                })?)
            }
            None => Err(ChildIoError::InvalidDescriptor {
                name: self.name.clone(),
            }),
        }
    }
pub async fn read_at ( & self , offset : u64 , buf : & mut DmaBuf , ) -> Result < usize , ChildIoError > { match self . bdev_handle . as_ref ( ) { Some ( desc ) => { Ok ( desc . read_at ( offset , buf ) . await . context ( ReadError { name : self . name . clone ( ) , } ) ? ) } None => Err ( ChildIoError :: InvalidDescriptor { name : self . name . clone ( ) , } ) , } }
read from this child device into the given buffer
read from this child device into the given buffer
&self
offset
u64
buf
&mut DmaBuf