#[repr(u8)]pub enum Address {
Memory(usize),
Io(usize),
}
Expand description
Variants§
Implementations§
Source§impl Address
impl Address
Sourcepub const fn from_parts(mio: Mio, addr: usize) -> Self
pub const fn from_parts(mio: Mio, addr: usize) -> Self
Sourcepub const fn try_from_parts(mio: Mio, addr: usize) -> Result<Self>
pub const fn try_from_parts(mio: Mio, addr: usize) -> Result<Self>
Sourcepub const fn into_parts(self) -> (Mio, usize)
pub const fn into_parts(self) -> (Mio, usize)
Converts the Address into component parts.
Trait Implementations§
impl Copy for Address
impl Eq for Address
impl StructuralPartialEq for Address
Auto Trait Implementations§
impl Freeze for Address
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnwindSafe for Address
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