pub struct MiscDeviceOptions {
pub name: &'static CStr,
}Expand description
Options for creating a misc device.
Fields§
§name: &'static CStrThe name of the miscdevice.
Implementations§
Source§impl MiscDeviceOptions
impl MiscDeviceOptions
Sourcepub const fn into_raw<T: MiscDevice>(self) -> miscdevice
pub const fn into_raw<T: MiscDevice>(self) -> miscdevice
Create a raw struct miscdev ready for registration.
Trait Implementations§
Source§impl Clone for MiscDeviceOptions
impl Clone for MiscDeviceOptions
impl Copy for MiscDeviceOptions
Auto Trait Implementations§
impl Freeze for MiscDeviceOptions
impl RefUnwindSafe for MiscDeviceOptions
impl Send for MiscDeviceOptions
impl Sync for MiscDeviceOptions
impl Unpin for MiscDeviceOptions
impl UnsafeUnpin for MiscDeviceOptions
impl UnwindSafe for MiscDeviceOptions
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<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.