#[export_name = "efi_main"]
pub(crate) extern "efiapi" fn main(
- _handle: Handle,
- system_table: SystemTable<Boot>,
+ internal_image_handle: Handle,
+ internal_system_table: *const c_void,
) -> Status
From 13ebf9aab0358ccab18a45a68defbcd0c4057ed3 Mon Sep 17 00:00:00 2001 From: Virv12 <55024474+Virv12@users.noreply.github.com> Date: Wed, 9 Oct 2024 23:54:11 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20olimpiad?= =?UTF-8?q?i-informatica/pixie@b739863963f379042acaa31d997957f76b3d64e2=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pixie_uefi/fn.main.html | 4 ++-- pixie_uefi/os/disk/fn.open_disk.html | 4 ++-- pixie_uefi/os/disk/index.html | 2 +- pixie_uefi/os/disk/struct.Disk.html | 21 ++++++++-------- pixie_uefi/os/disk/struct.DiskPartition.html | 4 ++-- pixie_uefi/os/enum.MessageKind.html | 4 ++-- pixie_uefi/os/fn.exit_boot_services.html | 2 +- pixie_uefi/os/index.html | 2 +- .../os/net/struct.NetworkInterface.html | 4 ++-- pixie_uefi/os/net/struct.SnpDevice.html | 6 ++--- pixie_uefi/os/net/struct.SnpRxToken.html | 2 +- pixie_uefi/os/net/struct.SnpTxToken.html | 8 +++---- pixie_uefi/os/net/type.Snp.html | 2 +- pixie_uefi/os/static.OS.html | 2 +- pixie_uefi/os/struct.BytesFmt.html | 2 +- pixie_uefi/os/struct.UefiOS.html | 24 +++++++++---------- pixie_uefi/os/struct.UefiOSImpl.html | 10 ++++---- pixie_uefi/os/timer/index.html | 2 +- pixie_uefi/os/timer/struct.Timer.html | 4 ++-- 19 files changed, 54 insertions(+), 55 deletions(-) diff --git a/pixie_uefi/fn.main.html b/pixie_uefi/fn.main.html index 1380f84..3863b0c 100644 --- a/pixie_uefi/fn.main.html +++ b/pixie_uefi/fn.main.html @@ -1,5 +1,5 @@
#[export_name = "efi_main"]
pub(crate) extern "efiapi" fn main(
- _handle: Handle,
- system_table: SystemTable<Boot>,
+ internal_image_handle: Handle,
+ internal_system_table: *const c_void,
) -> Status
fn open_disk(
+open_disk in pixie_uefi::os::disk - Rust
\ No newline at end of file
+) -> Result<(ScopedProtocol<DiskIo>, ScopedProtocol<BlockIO>), Error>
pub struct Disk {
- disk: ScopedProtocol<'static, DiskIo>,
- block: ScopedProtocol<'static, BlockIO>,
+Disk in pixie_uefi::os::disk - Rust pub struct Disk {
+ disk: ScopedProtocol<DiskIo>,
+ block: ScopedProtocol<BlockIO>,
os: UefiOS,
-}
Fields§
§disk: ScopedProtocol<'static, DiskIo>
§block: ScopedProtocol<'static, BlockIO>
§os: UefiOS
Implementations§
source§impl Disk
sourcepub fn new(os: UefiOS) -> Disk
sourcepub fn size(&self) -> u64
sourcepub async fn flush(&mut self)
sourcepub async fn read(&self, offset: u64, buf: &mut [u8]) -> Result<(), Error>
sourcepub async fn write(&mut self, offset: u64, buf: &[u8]) -> Result<(), Error>
sourcepub fn partitions(&mut self) -> Result<Vec<DiskPartition>, Error>
Trait Implementations§
source§impl BlockIo for &mut Disk
source§fn block_size(&self) -> BlockSize
Get the [BlockSize
]. The return value is not allowed to
-change.source§fn num_blocks(&mut self) -> Result<u64, Error>
Get the number of logical blocks in the disk. Read moresource§fn read_blocks(&mut self, start_lba: Lba, dst: &mut [u8]) -> Result<(), Error>
Read contiguous blocks from the disk. The dst
buffer size must
-be a non-zero multiple of block_size
. Implementations can
-use assert_valid_buffer
to check this.source§fn write_blocks(&mut self, _start_lba: Lba, _src: &[u8]) -> Result<(), Error>
Write contiguous block to the disk. The src
buffer size must
-be a non-zero multiple of block_size
. Implementations can
-use assert_valid_buffer
to check this. Read more§fn assert_valid_buffer(&self, buffer: &[u8])
Panic if the buffer
size is zero, or not a multiple of
-block_size
.Auto Trait Implementations§
§impl Freeze for Disk
§impl !RefUnwindSafe for Disk
§impl !Send for Disk
§impl !Sync for Disk
§impl Unpin for Disk
§impl !UnwindSafe for Disk
Blanket Implementations§
§impl<T> Any for Twhere
+}Fields§
§disk: ScopedProtocol<DiskIo>
§block: ScopedProtocol<BlockIO>
§os: UefiOS
Implementations§
source§impl Disk
sourcepub fn new(os: UefiOS) -> Disk
sourcepub fn size(&self) -> u64
sourcepub async fn flush(&mut self)
sourcepub async fn read(&self, offset: u64, buf: &mut [u8]) -> Result<(), Error>
sourcepub async fn write(&mut self, offset: u64, buf: &[u8]) -> Result<(), Error>
sourcepub fn partitions(&mut self) -> Result<Vec<DiskPartition>, Error>
Trait Implementations§
source§impl BlockIo for &mut Disk
source§fn block_size(&self) -> BlockSize
Get the [BlockSize
]. The return value is not allowed to
+change.source§fn num_blocks(&mut self) -> Result<u64, Error>
Get the number of logical blocks in the disk. Read moresource§fn read_blocks(&mut self, start_lba: Lba, dst: &mut [u8]) -> Result<(), Error>
Read contiguous blocks from the disk. The dst
buffer size must
+be a multiple of block_size
. Implementations are permitted
+to panic if this precondition is not met, e.g. by calling
+[BlockSize::assert_valid_block_buffer
].source§fn write_blocks(&mut self, _start_lba: Lba, _src: &[u8]) -> Result<(), Error>
Write contiguous block to the disk. The src
buffer size must
+be a multiple of block_size
. Implementations are permitted
+to panic if this precondition is not met, e.g. by calling
+[BlockSize::assert_valid_block_buffer
]. Read moreAuto Trait Implementations§
§impl Freeze for Disk
§impl RefUnwindSafe for Disk
§impl !Send for Disk
§impl !Sync for Disk
§impl Unpin for Disk
§impl UnwindSafe for Disk
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> From<T> for T
§fn from(t: T) -> T
Returns the argument unchanged.
diff --git a/pixie_uefi/os/disk/struct.DiskPartition.html b/pixie_uefi/os/disk/struct.DiskPartition.html
index 6f82bc0..026953e 100644
--- a/pixie_uefi/os/disk/struct.DiskPartition.html
+++ b/pixie_uefi/os/disk/struct.DiskPartition.html
@@ -1,9 +1,9 @@
-DiskPartition in pixie_uefi::os::disk - Rust pub struct DiskPartition {
+DiskPartition in pixie_uefi::os::disk - Rust pub struct DiskPartition {
pub byte_start: u64,
pub byte_end: u64,
pub guid: String,
pub name: String,
-}
Fields§
§byte_start: u64
§byte_end: u64
§guid: String
§name: String
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for DiskPartition
§impl RefUnwindSafe for DiskPartition
§impl Send for DiskPartition
§impl Sync for DiskPartition
§impl Unpin for DiskPartition
§impl UnwindSafe for DiskPartition
Blanket Implementations§
§impl<T> Any for Twhere
+}Fields§
§byte_start: u64
§byte_end: u64
§guid: String
§name: String
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for DiskPartition
§impl RefUnwindSafe for DiskPartition
§impl Send for DiskPartition
§impl Sync for DiskPartition
§impl Unpin for DiskPartition
§impl UnwindSafe for DiskPartition
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> From<T> for T
§fn from(t: T) -> T
Returns the argument unchanged.
diff --git a/pixie_uefi/os/enum.MessageKind.html b/pixie_uefi/os/enum.MessageKind.html
index 57a523b..2a87248 100644
--- a/pixie_uefi/os/enum.MessageKind.html
+++ b/pixie_uefi/os/enum.MessageKind.html
@@ -1,9 +1,9 @@
-MessageKind in pixie_uefi::os - Rust pub enum MessageKind {
+MessageKind in pixie_uefi::os - Rust pub enum MessageKind {
Debug,
Info,
Warning,
Error,
-}
Variants§
Trait Implementations§
source§impl Clone for MessageKind
source§fn clone(&self) -> MessageKind
Returns a copy of the value. Read more1.0.0§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Copy for MessageKind
Auto Trait Implementations§
§impl Freeze for MessageKind
§impl RefUnwindSafe for MessageKind
§impl Send for MessageKind
§impl Sync for MessageKind
§impl Unpin for MessageKind
§impl UnwindSafe for MessageKind
Blanket Implementations§
§impl<T> Any for Twhere
+}Variants§
Trait Implementations§
source§impl Clone for MessageKind
source§fn clone(&self) -> MessageKind
Returns a copy of the value. Read more1.0.0§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Copy for MessageKind
Auto Trait Implementations§
§impl Freeze for MessageKind
§impl RefUnwindSafe for MessageKind
§impl Send for MessageKind
§impl Sync for MessageKind
§impl Unpin for MessageKind
§impl UnwindSafe for MessageKind
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CloneToUninit for Twhere
diff --git a/pixie_uefi/os/fn.exit_boot_services.html b/pixie_uefi/os/fn.exit_boot_services.html
index 104d3d3..48a004f 100644
--- a/pixie_uefi/os/fn.exit_boot_services.html
+++ b/pixie_uefi/os/fn.exit_boot_services.html
@@ -1,4 +1,4 @@
-exit_boot_services in pixie_uefi::os - Rust unsafe extern "efiapi" fn exit_boot_services(
+exit_boot_services in pixie_uefi::os - Rust unsafe extern "efiapi" fn exit_boot_services(
_e: Event,
_ctx: Option<NonNull<c_void>>,
)
\ No newline at end of file
diff --git a/pixie_uefi/os/index.html b/pixie_uefi/os/index.html
index fe0a8d8..347959e 100644
--- a/pixie_uefi/os/index.html
+++ b/pixie_uefi/os/index.html
@@ -1 +1 @@
-pixie_uefi::os - Rust
\ No newline at end of file
+pixie_uefi::os - Rust
\ No newline at end of file
diff --git a/pixie_uefi/os/net/struct.NetworkInterface.html b/pixie_uefi/os/net/struct.NetworkInterface.html
index 5fd8693..f42ed5f 100644
--- a/pixie_uefi/os/net/struct.NetworkInterface.html
+++ b/pixie_uefi/os/net/struct.NetworkInterface.html
@@ -1,4 +1,4 @@
-NetworkInterface in pixie_uefi::os::net - Rust pub struct NetworkInterface {
+NetworkInterface in pixie_uefi::os::net - Rust pub struct NetworkInterface {
interface: Interface,
device: SnpDevice,
socket_set: SocketSet<'static>,
@@ -8,7 +8,7 @@
pub(super) tx: u64,
pub(super) vrx: u64,
pub(super) vtx: u64,
-}
Fields§
§interface: Interface
§device: SnpDevice
§socket_set: SocketSet<'static>
§dhcp_socket_handle: SocketHandle
§ephemeral_port_counter: u64
§rx: u64
§tx: u64
§vrx: u64
§vtx: u64
Implementations§
Auto Trait Implementations§
§impl Freeze for NetworkInterface
§impl !RefUnwindSafe for NetworkInterface
§impl !Send for NetworkInterface
§impl !Sync for NetworkInterface
§impl Unpin for NetworkInterface
§impl !UnwindSafe for NetworkInterface
Blanket Implementations§
§impl<T> Any for Twhere
+}Fields§
§interface: Interface
§device: SnpDevice
§socket_set: SocketSet<'static>
§dhcp_socket_handle: SocketHandle
§ephemeral_port_counter: u64
§rx: u64
§tx: u64
§vrx: u64
§vtx: u64
Implementations§
Auto Trait Implementations§
§impl Freeze for NetworkInterface
§impl RefUnwindSafe for NetworkInterface
§impl !Send for NetworkInterface
§impl !Sync for NetworkInterface
§impl Unpin for NetworkInterface
§impl !UnwindSafe for NetworkInterface
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> From<T> for T
§fn from(t: T) -> T
Returns the argument unchanged.
diff --git a/pixie_uefi/os/net/struct.SnpDevice.html b/pixie_uefi/os/net/struct.SnpDevice.html
index 9ddbc85..bc32904 100644
--- a/pixie_uefi/os/net/struct.SnpDevice.html
+++ b/pixie_uefi/os/net/struct.SnpDevice.html
@@ -1,8 +1,8 @@
-SnpDevice in pixie_uefi::os::net - Rust struct SnpDevice {
- snp: &'static ScopedProtocol<'static, SimpleNetwork>,
+SnpDevice in pixie_uefi::os::net - Rust struct SnpDevice {
+ snp: &'static ScopedProtocol<SimpleNetwork>,
tx_buf: [u8; 1514],
rx_buf: [u8; 1518],
-}
Fields§
§snp: &'static ScopedProtocol<'static, SimpleNetwork>
§tx_buf: [u8; 1514]
§rx_buf: [u8; 1518]
Implementations§
Trait Implementations§
source§impl Device for SnpDevice
source§type TxToken<'d> = SnpTxToken<'d>
source§type RxToken<'d> = SnpRxToken<'d>
source§fn receive(&mut self, _: Instant) -> Option<(SnpRxToken<'_>, SnpTxToken<'_>)>
Construct a token pair consisting of one receive token and one transmit token. Read moresource§fn transmit(&mut self, _: Instant) -> Option<SnpTxToken<'_>>
Construct a transmit token. Read moresource§fn capabilities(&self) -> DeviceCapabilities
Get a description of device capabilities.Auto Trait Implementations§
§impl Freeze for SnpDevice
§impl !RefUnwindSafe for SnpDevice
§impl !Send for SnpDevice
§impl !Sync for SnpDevice
§impl Unpin for SnpDevice
§impl !UnwindSafe for SnpDevice
Blanket Implementations§
§impl<T> Any for Twhere
+}Fields§
§snp: &'static ScopedProtocol<SimpleNetwork>
§tx_buf: [u8; 1514]
§rx_buf: [u8; 1518]
Implementations§
Trait Implementations§
source§impl Device for SnpDevice
source§type TxToken<'d> = SnpTxToken<'d>
source§type RxToken<'d> = SnpRxToken<'d>
source§fn receive(&mut self, _: Instant) -> Option<(SnpRxToken<'_>, SnpTxToken<'_>)>
Construct a token pair consisting of one receive token and one transmit token. Read moresource§fn transmit(&mut self, _: Instant) -> Option<SnpTxToken<'_>>
Construct a transmit token. Read moresource§fn capabilities(&self) -> DeviceCapabilities
Get a description of device capabilities.Auto Trait Implementations§
§impl Freeze for SnpDevice
§impl RefUnwindSafe for SnpDevice
§impl !Send for SnpDevice
§impl !Sync for SnpDevice
§impl Unpin for SnpDevice
§impl UnwindSafe for SnpDevice
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> From<T> for T
§fn from(t: T) -> T
Returns the argument unchanged.
diff --git a/pixie_uefi/os/net/struct.SnpRxToken.html b/pixie_uefi/os/net/struct.SnpRxToken.html
index 25f6c09..c06c93e 100644
--- a/pixie_uefi/os/net/struct.SnpRxToken.html
+++ b/pixie_uefi/os/net/struct.SnpRxToken.html
@@ -1,7 +1,7 @@
SnpRxToken in pixie_uefi::os::net - Rust struct SnpRxToken<'a> {
packet: &'a mut [u8],
}
Fields§
§packet: &'a mut [u8]
Trait Implementations§
Auto Trait Implementations§
§impl<'a> Freeze for SnpRxToken<'a>
§impl<'a> RefUnwindSafe for SnpRxToken<'a>
§impl<'a> Send for SnpRxToken<'a>
§impl<'a> Sync for SnpRxToken<'a>
§impl<'a> Unpin for SnpRxToken<'a>
§impl<'a> !UnwindSafe for SnpRxToken<'a>
Blanket Implementations§
Auto Trait Implementations§
§impl<'a> Freeze for SnpRxToken<'a>
§impl<'a> RefUnwindSafe for SnpRxToken<'a>
§impl<'a> Send for SnpRxToken<'a>
§impl<'a> Sync for SnpRxToken<'a>
§impl<'a> Unpin for SnpRxToken<'a>
§impl<'a> !UnwindSafe for SnpRxToken<'a>
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> From<T> for T
§fn from(t: T) -> T
Returns the argument unchanged.
diff --git a/pixie_uefi/os/net/struct.SnpTxToken.html b/pixie_uefi/os/net/struct.SnpTxToken.html
index c645ef8..7cbf674 100644
--- a/pixie_uefi/os/net/struct.SnpTxToken.html
+++ b/pixie_uefi/os/net/struct.SnpTxToken.html
@@ -1,8 +1,8 @@
-SnpTxToken in pixie_uefi::os::net - Rust struct SnpTxToken<'a> {
- snp: &'static ScopedProtocol<'static, SimpleNetwork>,
+SnpTxToken in pixie_uefi::os::net - Rust struct SnpTxToken<'a> {
+ snp: &'static ScopedProtocol<SimpleNetwork>,
buf: &'a mut [u8],
-}
Fields§
§snp: &'static ScopedProtocol<'static, SimpleNetwork>
§buf: &'a mut [u8]
Trait Implementations§
Auto Trait Implementations§
§impl<'a> Freeze for SnpTxToken<'a>
§impl<'a> !RefUnwindSafe for SnpTxToken<'a>
§impl<'a> !Send for SnpTxToken<'a>
§impl<'a> !Sync for SnpTxToken<'a>
§impl<'a> Unpin for SnpTxToken<'a>
§impl<'a> !UnwindSafe for SnpTxToken<'a>
Blanket Implementations§
§impl<T> Any for Twhere
+}Fields§
§snp: &'static ScopedProtocol<SimpleNetwork>
§buf: &'a mut [u8]
Trait Implementations§
source§impl TxToken for SnpTxToken<'_>
Auto Trait Implementations§
§impl<'a> Freeze for SnpTxToken<'a>
§impl<'a> RefUnwindSafe for SnpTxToken<'a>
§impl<'a> !Send for SnpTxToken<'a>
§impl<'a> !Sync for SnpTxToken<'a>
§impl<'a> Unpin for SnpTxToken<'a>
§impl<'a> !UnwindSafe for SnpTxToken<'a>
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> From<T> for T
§fn from(t: T) -> T
Returns the argument unchanged.
diff --git a/pixie_uefi/os/net/type.Snp.html b/pixie_uefi/os/net/type.Snp.html
index 42f7cb1..aa2de95 100644
--- a/pixie_uefi/os/net/type.Snp.html
+++ b/pixie_uefi/os/net/type.Snp.html
@@ -1 +1 @@
-Snp in pixie_uefi::os::net - Rust type Snp = &'static ScopedProtocol<'static, SimpleNetwork>;
\ No newline at end of file
+Snp in pixie_uefi::os::net - Rust type Snp = &'static ScopedProtocol<SimpleNetwork>;
\ No newline at end of file
diff --git a/pixie_uefi/os/static.OS.html b/pixie_uefi/os/static.OS.html
index b2ed00f..7c6809e 100644
--- a/pixie_uefi/os/static.OS.html
+++ b/pixie_uefi/os/static.OS.html
@@ -1 +1 @@
-OS in pixie_uefi::os - Rust static OS: SyncRefCell<Option<UefiOSImpl>>
\ No newline at end of file
+OS in pixie_uefi::os - Rust static OS: SyncRefCell<Option<UefiOSImpl>>
\ No newline at end of file
diff --git a/pixie_uefi/os/struct.BytesFmt.html b/pixie_uefi/os/struct.BytesFmt.html
index fe820ca..234edd1 100644
--- a/pixie_uefi/os/struct.BytesFmt.html
+++ b/pixie_uefi/os/struct.BytesFmt.html
@@ -1,4 +1,4 @@
-BytesFmt in pixie_uefi::os - Rust struct BytesFmt(u64);
Tuple Fields§
§0: u64
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for BytesFmt
§impl RefUnwindSafe for BytesFmt
§impl Send for BytesFmt
§impl Sync for BytesFmt
§impl Unpin for BytesFmt
§impl UnwindSafe for BytesFmt
Blanket Implementations§
§impl<T> Any for Twhere
+BytesFmt in pixie_uefi::os - Rust struct BytesFmt(u64);
Tuple Fields§
§0: u64
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for BytesFmt
§impl RefUnwindSafe for BytesFmt
§impl Send for BytesFmt
§impl Sync for BytesFmt
§impl Unpin for BytesFmt
§impl UnwindSafe for BytesFmt
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> From<T> for T
§fn from(t: T) -> T
Returns the argument unchanged.
diff --git a/pixie_uefi/os/struct.UefiOS.html b/pixie_uefi/os/struct.UefiOS.html
index 62e19c2..7bab5af 100644
--- a/pixie_uefi/os/struct.UefiOS.html
+++ b/pixie_uefi/os/struct.UefiOS.html
@@ -1,33 +1,33 @@
-UefiOS in pixie_uefi::os - Rust #[non_exhaustive]pub struct UefiOS {
+UefiOS in pixie_uefi::os - Rust #[non_exhaustive]pub struct UefiOS {
cant_build: (),
-}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.§cant_build: ()
Implementations§
source§impl UefiOS
sourcepub fn start<F, Fut>(system_table: SystemTable<Boot>, f: F) -> !where
+}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.§cant_build: ()
Implementations§
source§impl UefiOS
sourcepub fn start<F, Fut>(f: F) -> !
sourcefn borrow(&self) -> Ref<'static, UefiOSImpl>
sourcefn borrow_mut(&self) -> RefMut<'static, UefiOSImpl>
sourcepub fn timer(&self) -> Ref<'static, Timer>
sourcepub fn rng(&self) -> RefMut<'static, Rng>
sourcefn tasks(&self) -> RefMut<'static, Vec<Arc<Task>>>
sourcepub fn net(&self) -> RefMut<'static, NetworkInterface>
sourcepub fn wait_for_ip(self) -> PollFn<impl FnMut(&mut Context<'_>) -> Poll<()>>
sourcepub fn schedule(&self) -> PollFn<impl FnMut(&mut Context<'_>) -> Poll<()>>
Interrupt task execution.
+ Fut: Future<Output = Result<!, Error>>,
sourcefn borrow(&self) -> Ref<'static, UefiOSImpl>
sourcefn borrow_mut(&self) -> RefMut<'static, UefiOSImpl>
sourcepub fn timer(&self) -> Ref<'static, Timer>
sourcepub fn rng(&self) -> RefMut<'static, Rng>
sourcefn tasks(&self) -> RefMut<'static, Vec<Arc<Task>>>
sourcepub fn net(&self) -> RefMut<'static, NetworkInterface>
sourcepub fn wait_for_ip(self) -> PollFn<impl FnMut(&mut Context<'_>) -> Poll<()>>
sourcepub fn schedule(&self) -> PollFn<impl FnMut(&mut Context<'_>) -> Poll<()>>
Interrupt task execution.
This is useful to yield the CPU to other tasks.
-sourcepub fn sleep_us(
+
sourcepub fn sleep_us(
self,
us: u64,
-) -> PollFn<impl FnMut(&mut Context<'_>) -> Poll<()>>
sourcepub fn deep_sleep_us(&self, us: u64)
WARNING: this function halts all tasks
-sourcepub fn get_variable(
+) -> PollFn<impl FnMut(&mut Context<'_>) -> Poll<()>>
sourcepub fn deep_sleep_us(&self, us: u64)
WARNING: this function halts all tasks
+sourcepub fn get_variable(
&self,
name: &str,
vendor: &VariableVendor,
-) -> Result<(Vec<u8>, VariableAttributes), Error>
sourcepub fn set_variable(
+) -> Result<(Vec<u8>, VariableAttributes), Error>
sourcepub fn set_variable(
&self,
name: &str,
vendor: &VariableVendor,
attrs: VariableAttributes,
data: &[u8],
-) -> Result<(), Error>
sourcepub fn boot_options(&self) -> BootOptions
sourcepub fn device_path_to_string(&self, device: &DevicePath) -> String
sourcefn handle_on_device<P: Protocol>(&self, device: &DevicePath) -> Handle
Find the topmost device that implements this protocol.
-sourcefn all_handles<P: Protocol>(&self) -> Result<Vec<Handle>, Error>
sourcefn open_handle<P: Protocol>(
+) -> Result<(), Error>
sourcepub fn boot_options(&self) -> BootOptions
sourcepub fn device_path_to_string(&self, device: &DevicePath) -> String
sourcefn handle_on_device<P: Protocol>(&self, device: &DevicePath) -> Handle
Find the topmost device that implements this protocol.
+sourcefn all_handles<P: Protocol>(&self) -> Result<Vec<Handle>, Error>
sourcefn open_handle<P: Protocol>(
&self,
handle: Handle,
-) -> Result<ScopedProtocol<'static, P>, Error>
sourcefn open_protocol_on_device<P: Protocol>(
+) -> Result<ScopedProtocol<P>, Error>
sourcefn open_protocol_on_device<P: Protocol>(
&self,
device: &DevicePath,
-) -> Result<ScopedProtocol<'static, P>, Error>
sourcepub fn open_first_disk(&self) -> Disk
sourcepub async fn connect(&self, ip: [u8; 4], port: u16) -> Result<TcpStream, Error>
sourcepub async fn udp_bind(&self, port: Option<u16>) -> Result<UdpHandle, Error>
sourcepub async fn read_key(&self) -> Result<Key, Error>
sourcepub fn write_with_color(&self, msg: &str, fg: Color, bg: Color)
sourcefn draw_ui(&self)
sourcepub fn force_ui_redraw(&self)
sourcepub fn set_ui_drawer<F: Fn(UefiOS) + 'static>(&self, f: F)
sourcepub fn append_message(&self, msg: String, kind: MessageKind)
sourcepub fn spawn<Fut>(&self, name: &'static str, f: Fut)where
+) -> Result<ScopedProtocol<P>, Error>sourcepub fn open_first_disk(&self) -> Disk
sourcepub async fn connect(&self, ip: [u8; 4], port: u16) -> Result<TcpStream, Error>
sourcepub async fn udp_bind(&self, port: Option<u16>) -> Result<UdpHandle, Error>
sourcepub async fn read_key(&self) -> Result<Key, Error>
sourcepub fn write_with_color(&self, msg: &str, fg: Color, bg: Color)
sourcefn draw_ui(&self)
sourcepub fn force_ui_redraw(&self)
sourcepub fn set_ui_drawer<F: Fn(UefiOS) + 'static>(&self, f: F)
sourcepub fn append_message(&self, msg: String, kind: MessageKind)
sourcepub fn spawn<Fut>(&self, name: &'static str, f: Fut)where
Fut: Future<Output = ()> + 'static,
Spawn a new task.
-sourcepub fn reset(&self) -> !
Trait Implementations§
source§impl Copy for UefiOS
source§impl !Send for UefiOS
source§impl !Sync for UefiOS
Auto Trait Implementations§
§impl Freeze for UefiOS
§impl RefUnwindSafe for UefiOS
§impl Unpin for UefiOS
§impl UnwindSafe for UefiOS
Blanket Implementations§
Trait Implementations§
source§impl Copy for UefiOS
source§impl !Send for UefiOS
source§impl !Sync for UefiOS
Auto Trait Implementations§
§impl Freeze for UefiOS
§impl RefUnwindSafe for UefiOS
§impl Unpin for UefiOS
§impl UnwindSafe for UefiOS
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> CloneToUninit for Twhere
diff --git a/pixie_uefi/os/struct.UefiOSImpl.html b/pixie_uefi/os/struct.UefiOSImpl.html
index 591dc1c..8246b84 100644
--- a/pixie_uefi/os/struct.UefiOSImpl.html
+++ b/pixie_uefi/os/struct.UefiOSImpl.html
@@ -1,17 +1,15 @@
-UefiOSImpl in pixie_uefi::os - Rust struct UefiOSImpl {
- boot_services: &'static BootServices,
- runtime_services: &'static RuntimeServices,
+UefiOSImpl in pixie_uefi::os - Rust struct UefiOSImpl {
timer: Timer,
rng: Rng,
tasks: Vec<Arc<Task>>,
- input: Option<ScopedProtocol<'static, Input>>,
- output: Option<ScopedProtocol<'static, Output>>,
+ input: Option<ScopedProtocol<Input>>,
+ output: Option<ScopedProtocol<Output>>,
net: Option<NetworkInterface>,
messages: VecDeque<(String, MessageKind)>,
ui_buf: Vec<(String, Color, Color)>,
ui_pos: usize,
ui_drawer: Option<Box<dyn Fn(UefiOS) + 'static>>,
-}
Fields§
§boot_services: &'static BootServices
§runtime_services: &'static RuntimeServices
§timer: Timer
§rng: Rng
§tasks: Vec<Arc<Task>>
§input: Option<ScopedProtocol<'static, Input>>
§output: Option<ScopedProtocol<'static, Output>>
§net: Option<NetworkInterface>
§messages: VecDeque<(String, MessageKind)>
§ui_buf: Vec<(String, Color, Color)>
§ui_pos: usize
§ui_drawer: Option<Box<dyn Fn(UefiOS) + 'static>>
Implementations§
source§impl UefiOSImpl
sourcefn cols(&mut self) -> usize
sourcepub fn write_with_color(&mut self, msg: &str, fg: Color, bg: Color)
sourcepub fn maybe_advance_to_col(&mut self, col: usize)
sourcepub fn flush_ui_buf(&mut self)
Auto Trait Implementations§
§impl Freeze for UefiOSImpl
§impl !RefUnwindSafe for UefiOSImpl
§impl !Send for UefiOSImpl
§impl !Sync for UefiOSImpl
§impl Unpin for UefiOSImpl
§impl !UnwindSafe for UefiOSImpl
Blanket Implementations§
§impl<T> Any for Twhere
+}Fields§
§timer: Timer
§rng: Rng
§tasks: Vec<Arc<Task>>
§input: Option<ScopedProtocol<Input>>
§output: Option<ScopedProtocol<Output>>
§net: Option<NetworkInterface>
§messages: VecDeque<(String, MessageKind)>
§ui_buf: Vec<(String, Color, Color)>
§ui_pos: usize
§ui_drawer: Option<Box<dyn Fn(UefiOS) + 'static>>
Implementations§
source§impl UefiOSImpl
sourcefn cols(&mut self) -> usize
sourcepub fn write_with_color(&mut self, msg: &str, fg: Color, bg: Color)
sourcepub fn maybe_advance_to_col(&mut self, col: usize)
sourcepub fn flush_ui_buf(&mut self)
Auto Trait Implementations§
§impl Freeze for UefiOSImpl
§impl !RefUnwindSafe for UefiOSImpl
§impl !Send for UefiOSImpl
§impl !Sync for UefiOSImpl
§impl Unpin for UefiOSImpl
§impl !UnwindSafe for UefiOSImpl
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> From<T> for T
§fn from(t: T) -> T
Returns the argument unchanged.
diff --git a/pixie_uefi/os/timer/index.html b/pixie_uefi/os/timer/index.html
index 49a9e11..8879a7b 100644
--- a/pixie_uefi/os/timer/index.html
+++ b/pixie_uefi/os/timer/index.html
@@ -1 +1 @@
-pixie_uefi::os::timer - Rust
\ No newline at end of file
+pixie_uefi::os::timer - Rust
\ No newline at end of file
diff --git a/pixie_uefi/os/timer/struct.Timer.html b/pixie_uefi/os/timer/struct.Timer.html
index 7fe87ef..6be4bf0 100644
--- a/pixie_uefi/os/timer/struct.Timer.html
+++ b/pixie_uefi/os/timer/struct.Timer.html
@@ -1,7 +1,7 @@
-Timer in pixie_uefi::os::timer - Rust pub struct Timer {
+Timer in pixie_uefi::os::timer - Rust pub struct Timer {
ticks_at_start: i64,
ticks_per_micro: i64,
-}
Fields§
§ticks_at_start: i64
§ticks_per_micro: i64
Implementations§
Auto Trait Implementations§
§impl Freeze for Timer
§impl RefUnwindSafe for Timer
§impl Send for Timer
§impl Sync for Timer
§impl Unpin for Timer
§impl UnwindSafe for Timer
Blanket Implementations§
§impl<T> Any for Twhere
+}Fields§
§ticks_at_start: i64
§ticks_per_micro: i64
Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for Timer
§impl RefUnwindSafe for Timer
§impl Send for Timer
§impl Sync for Timer
§impl Unpin for Timer
§impl UnwindSafe for Timer
Blanket Implementations§