pub struct AtaChannel {
io_base: u16,
control_base: u16,
bus: u8,
}Fields§
§io_base: u16§control_base: u16§bus: u8Implementations§
Source§impl AtaChannel
impl AtaChannel
Sourcefn wait_ready(&self) -> Result<(), &'static str>
fn wait_ready(&self) -> Result<(), &'static str>
Performs the wait ready operation.
Sourcefn select_device(&self, _device: u8, lba: u64)
fn select_device(&self, _device: u8, lba: u64)
Performs the select device operation.
Sourcefn identify(&self, device: u8) -> Option<AtaDriveInfo>
fn identify(&self, device: u8) -> Option<AtaDriveInfo>
Performs the identify operation.
Sourcefn decode_identify_string(buffer: &[u16], start: usize, end: usize) -> String
fn decode_identify_string(buffer: &[u16], start: usize, end: usize) -> String
Performs the decode identify string operation.
Trait Implementations§
Source§impl Clone for AtaChannel
impl Clone for AtaChannel
Source§fn clone(&self) -> AtaChannel
fn clone(&self) -> AtaChannel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AtaChannel
Auto Trait Implementations§
impl Freeze for AtaChannel
impl RefUnwindSafe for AtaChannel
impl Send for AtaChannel
impl Sync for AtaChannel
impl Unpin for AtaChannel
impl UnsafeUnpin for AtaChannel
impl UnwindSafe for AtaChannel
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more