pub struct Block { /* private fields */ }Implementations§
Source§impl Block
impl Block
pub fn new(iterface: impl Interface) -> Self
pub fn typed_ref<T: Interface>(&self) -> Option<&T>
pub fn typed_mut<T: Interface>(&mut self) -> Option<&mut T>
Sourcepub fn create_queue_with_capacity(
&mut self,
capacity: usize,
) -> Option<CmdQueue>
pub fn create_queue_with_capacity( &mut self, capacity: usize, ) -> Option<CmdQueue>
Create a new read queue with specified buffer pool capacity.
Sourcepub fn create_queue(&mut self) -> Option<CmdQueue>
pub fn create_queue(&mut self) -> Option<CmdQueue>
Create a new read queue with default capacity.
Sourcepub fn irq_handler(&self) -> IrqHandler
pub fn irq_handler(&self) -> IrqHandler
Get an IRQ handler for this block device.
Trait Implementations§
Source§impl DriverGeneric for Block
impl DriverGeneric for Block
fn open(&mut self) -> Result<(), KError>
fn close(&mut self) -> Result<(), KError>
Source§fn raw_any(&self) -> Option<&(dyn Any + 'static)>
fn raw_any(&self) -> Option<&(dyn Any + 'static)>
Subtype casting support, returns subtype as
&dyn AnySource§fn raw_any_mut(&mut self) -> Option<&mut (dyn Any + 'static)>
fn raw_any_mut(&mut self) -> Option<&mut (dyn Any + 'static)>
Subtype casting support, returns subtype as
&mut dyn AnyAuto Trait Implementations§
impl Freeze for Block
impl !RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl !UnwindSafe for Block
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