pub struct GenDisk<T: Operations> { /* private fields */ }Expand description
A generic block device.
§Invariants
gendiskmust always point to an initialized and validstruct gendisk.gendiskwas added to the VFS through a call tobindings::device_add_disk.self.gendisk.queue.queuedatais initialized by a call toForeignOwnable::into_foreign.
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for GenDisk<T>
impl<T> !Sync for GenDisk<T>
impl<T> !UnwindSafe for GenDisk<T>
impl<T> Freeze for GenDisk<T>
impl<T> Unpin for GenDisk<T>
impl<T> UnsafeUnpin for GenDisk<T>
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<S, T> IntoSafeCast<T> for Swhere
T: FromSafeCast<S>,
impl<S, T> IntoSafeCast<T> for Swhere
T: FromSafeCast<S>,
Source§fn into_safe_cast(self) -> T
fn into_safe_cast(self) -> T
Convert
self into a T. This operation is guaranteed to be lossless.Source§impl<S, T> IntoSafeCastArch<T> for Swhere
T: FromSafeCastArch<S>,
impl<S, T> IntoSafeCastArch<T> for Swhere
T: FromSafeCastArch<S>,
Source§fn into_safe_cast_arch(self) -> T
fn into_safe_cast_arch(self) -> T
Convert
self into a T. This operation is guaranteed to be lossless.