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 @@ main in pixie_uefi - Rust
pixie_uefi

Function main

source
#[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
\ No newline at end of file diff --git a/pixie_uefi/os/disk/fn.open_disk.html b/pixie_uefi/os/disk/fn.open_disk.html index 2f24dc2..e059d51 100644 --- a/pixie_uefi/os/disk/fn.open_disk.html +++ b/pixie_uefi/os/disk/fn.open_disk.html @@ -1,4 +1,4 @@ -open_disk in pixie_uefi::os::disk - Rust
pixie_uefi::os::disk

Function open_disk

source
fn open_disk(
+open_disk in pixie_uefi::os::disk - Rust
pixie_uefi::os::disk

Function open_disk

source
fn open_disk(
     os: UefiOS,
     handle: Handle,
-) -> Result<(ScopedProtocol<'static, DiskIo>, ScopedProtocol<'static, BlockIO>), Error>
\ No newline at end of file +) -> Result<(ScopedProtocol<DiskIo>, ScopedProtocol<BlockIO>), Error>
\ No newline at end of file diff --git a/pixie_uefi/os/disk/index.html b/pixie_uefi/os/disk/index.html index 5b290a1..aeb2a76 100644 --- a/pixie_uefi/os/disk/index.html +++ b/pixie_uefi/os/disk/index.html @@ -1 +1 @@ -pixie_uefi::os::disk - Rust
pixie_uefi::os

Module disk

source

Structs§

Functions§

\ No newline at end of file +pixie_uefi::os::disk - Rust
pixie_uefi::os

Module disk

source

Structs§

Functions§

\ No newline at end of file diff --git a/pixie_uefi/os/disk/struct.Disk.html b/pixie_uefi/os/disk/struct.Disk.html index 91aceae..22558e3 100644 --- a/pixie_uefi/os/disk/struct.Disk.html +++ b/pixie_uefi/os/disk/struct.Disk.html @@ -1,14 +1,15 @@ -Disk in pixie_uefi::os::disk - Rust
pixie_uefi::os::disk

Struct Disk

source
pub struct Disk {
-    disk: ScopedProtocol<'static, DiskIo>,
-    block: ScopedProtocol<'static, BlockIO>,
+Disk in pixie_uefi::os::disk - Rust
pixie_uefi::os::disk

Struct Disk

source
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

source

pub fn new(os: UefiOS) -> Disk

source

pub fn size(&self) -> u64

source

pub async fn flush(&mut self)

source

pub async fn read(&self, offset: u64, buf: &mut [u8]) -> Result<(), Error>

source

pub async fn write(&mut self, offset: u64, buf: &[u8]) -> Result<(), Error>

source

pub fn partitions(&mut self) -> Result<Vec<DiskPartition>, Error>

Trait Implementations§

source§

impl BlockIo for &mut Disk

source§

type Error = Error

IO error type.
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 more
source§

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
source§

fn flush(&mut self) -> Result<(), Error>

Flush any pending writes to the device.
§

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 T
where +}

Fields§

§disk: ScopedProtocol<DiskIo>§block: ScopedProtocol<BlockIO>§os: UefiOS

Implementations§

source§

impl Disk

source

pub fn new(os: UefiOS) -> Disk

source

pub fn size(&self) -> u64

source

pub async fn flush(&mut self)

source

pub async fn read(&self, offset: u64, buf: &mut [u8]) -> Result<(), Error>

source

pub async fn write(&mut self, offset: u64, buf: &[u8]) -> Result<(), Error>

source

pub fn partitions(&mut self) -> Result<Vec<DiskPartition>, Error>

Trait Implementations§

source§

impl BlockIo for &mut Disk

source§

type Error = Error

IO error type.
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 more
source§

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 more
source§

fn flush(&mut self) -> Result<(), Error>

Flush any pending writes to the device.

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 T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where 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
pixie_uefi::os::disk

Struct DiskPartition

source
pub struct DiskPartition {
+DiskPartition in pixie_uefi::os::disk - Rust
pixie_uefi::os::disk

Struct DiskPartition

source
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§

source§

impl Debug for DiskPartition

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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 T
where +}

Fields§

§byte_start: u64§byte_end: u64§guid: String§name: String

Trait Implementations§

source§

impl Debug for DiskPartition

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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 T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where 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
pixie_uefi::os

Enum MessageKind

source
pub enum MessageKind {
+MessageKind in pixie_uefi::os - Rust
pixie_uefi::os

Enum MessageKind

source
pub enum MessageKind {
     Debug,
     Info,
     Warning,
     Error,
-}

Variants§

§

Debug

§

Info

§

Warning

§

Error

Trait Implementations§

source§

impl Clone for MessageKind

source§

fn clone(&self) -> MessageKind

Returns a copy of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

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 T
where +}

Variants§

§

Debug

§

Info

§

Warning

§

Error

Trait Implementations§

source§

impl Clone for MessageKind

source§

fn clone(&self) -> MessageKind

Returns a copy of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

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 T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where 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
pixie_uefi::os

Function exit_boot_services

source
unsafe extern "efiapi" fn exit_boot_services(
+exit_boot_services in pixie_uefi::os - Rust
pixie_uefi::os

Function exit_boot_services

source
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
pixie_uefi

Module os

source

Re-exports§

Modules§

Structs§

Enums§

Statics§

Functions§

\ No newline at end of file +pixie_uefi::os - Rust
pixie_uefi

Module os

source

Re-exports§

Modules§

Structs§

Enums§

Statics§

Functions§

\ 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
pixie_uefi::os::net

Struct NetworkInterface

source
pub struct NetworkInterface {
+NetworkInterface in pixie_uefi::os::net - Rust
pixie_uefi::os::net

Struct NetworkInterface

source
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§

source§

impl NetworkInterface

source

pub fn new(os: UefiOS) -> NetworkInterface

source

fn get_ephemeral_port(&mut self) -> u16

source

pub fn has_ip(&self) -> bool

source

pub fn ip(&self) -> Option<Ipv4Address>

source

pub(super) fn poll(&mut self, timer: &Timer) -> bool

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 T
where +}

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§

source§

impl NetworkInterface

source

pub fn new(os: UefiOS) -> NetworkInterface

source

fn get_ephemeral_port(&mut self) -> u16

source

pub fn has_ip(&self) -> bool

source

pub fn ip(&self) -> Option<Ipv4Address>

source

pub(super) fn poll(&mut self, timer: &Timer) -> bool

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 T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where 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
pixie_uefi::os::net

Struct SnpDevice

source
struct SnpDevice {
-    snp: &'static ScopedProtocol<'static, SimpleNetwork>,
+SnpDevice in pixie_uefi::os::net - Rust
pixie_uefi::os::net

Struct SnpDevice

source
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§

source§

impl SnpDevice

source

fn new(snp: &'static ScopedProtocol<'static, SimpleNetwork>) -> SnpDevice

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 more
source§

fn transmit(&mut self, _: Instant) -> Option<SnpTxToken<'_>>

Construct a transmit token. Read more
source§

fn capabilities(&self) -> DeviceCapabilities

Get a description of device capabilities.
source§

impl Drop for SnpDevice

source§

fn drop(&mut self)

Executes the destructor for this type. Read more

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 T
where +}

Fields§

§snp: &'static ScopedProtocol<SimpleNetwork>§tx_buf: [u8; 1514]§rx_buf: [u8; 1518]

Implementations§

source§

impl SnpDevice

source

fn new(snp: &'static ScopedProtocol<SimpleNetwork>) -> SnpDevice

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 more
source§

fn transmit(&mut self, _: Instant) -> Option<SnpTxToken<'_>>

Construct a transmit token. Read more
source§

fn capabilities(&self) -> DeviceCapabilities

Get a description of device capabilities.
source§

impl Drop for SnpDevice

source§

fn drop(&mut self)

Executes the destructor for this type. Read more

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 T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where 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
pixie_uefi::os::net

Struct SnpRxToken

source
struct SnpRxToken<'a> {
     packet: &'a mut [u8],
 }

Fields§

§packet: &'a mut [u8]

Trait Implementations§

source§

impl RxToken for SnpRxToken<'_>

source§

fn consume<R, F>(self, f: F) -> R
where - F: FnOnce(&mut [u8]) -> R,

Consumes the token to receive a single network packet. Read more

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 T
where + F: FnOnce(&mut [u8]) -> R,

Consumes the token to receive a single network packet. Read more
§

fn meta(&self) -> PacketMeta

The Packet ID associated with the frame received by this [RxToken]

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 T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where 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
pixie_uefi::os::net

Struct SnpTxToken

source
struct SnpTxToken<'a> {
-    snp: &'static ScopedProtocol<'static, SimpleNetwork>,
+SnpTxToken in pixie_uefi::os::net - Rust
pixie_uefi::os::net

Struct SnpTxToken

source
struct SnpTxToken<'a> {
+    snp: &'static ScopedProtocol<SimpleNetwork>,
     buf: &'a mut [u8],
-}

Fields§

§snp: &'static ScopedProtocol<'static, SimpleNetwork>§buf: &'a mut [u8]

Trait Implementations§

source§

impl TxToken for SnpTxToken<'_>

source§

fn consume<R, F>(self, len: usize, f: F) -> R
where - F: FnOnce(&mut [u8]) -> R,

Consumes the token to send a single network packet. Read more

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 T
where +}

Fields§

§snp: &'static ScopedProtocol<SimpleNetwork>§buf: &'a mut [u8]

Trait Implementations§

source§

impl TxToken for SnpTxToken<'_>

source§

fn consume<R, F>(self, len: usize, f: F) -> R
where + F: FnOnce(&mut [u8]) -> R,

Consumes the token to send a single network packet. Read more
§

fn set_meta(&mut self, meta: PacketMeta)

The Packet ID to be associated with the frame to be transmitted by this [TxToken].

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 T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where 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
pixie_uefi::os::net

Type Alias Snp

source
type Snp = &'static ScopedProtocol<'static, SimpleNetwork>;
\ No newline at end of file +Snp in pixie_uefi::os::net - Rust
pixie_uefi::os::net

Type Alias Snp

source
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
pixie_uefi::os

Static OS

source
static OS: SyncRefCell<Option<UefiOSImpl>>
\ No newline at end of file +OS in pixie_uefi::os - Rust
pixie_uefi::os

Static OS

source
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
pixie_uefi::os

Struct BytesFmt

source
struct BytesFmt(u64);

Tuple Fields§

§0: u64

Trait Implementations§

source§

impl Display for BytesFmt

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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 T
where +BytesFmt in pixie_uefi::os - Rust
pixie_uefi::os

Struct BytesFmt

source
struct BytesFmt(u64);

Tuple Fields§

§0: u64

Trait Implementations§

source§

impl Display for BytesFmt

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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 T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where 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
pixie_uefi::os

Struct UefiOS

source
#[non_exhaustive]
pub struct UefiOS { +UefiOS in pixie_uefi::os - Rust
pixie_uefi::os

Struct UefiOS

source
#[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

source

pub 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

source

pub fn start<F, Fut>(f: F) -> !
where F: FnMut(UefiOS) -> Fut + 'static, - Fut: Future<Output = Result<!, Error>>,

source

fn borrow(&self) -> Ref<'static, UefiOSImpl>

source

fn borrow_mut(&self) -> RefMut<'static, UefiOSImpl>

source

pub fn timer(&self) -> Ref<'static, Timer>

source

pub fn rng(&self) -> RefMut<'static, Rng>

source

fn tasks(&self) -> RefMut<'static, Vec<Arc<Task>>>

source

pub fn net(&self) -> RefMut<'static, NetworkInterface>

source

pub fn wait_for_ip(self) -> PollFn<impl FnMut(&mut Context<'_>) -> Poll<()>>

source

pub fn schedule(&self) -> PollFn<impl FnMut(&mut Context<'_>) -> Poll<()>>

Interrupt task execution. + Fut: Future<Output = Result<!, Error>>,

source

fn borrow(&self) -> Ref<'static, UefiOSImpl>

source

fn borrow_mut(&self) -> RefMut<'static, UefiOSImpl>

source

pub fn timer(&self) -> Ref<'static, Timer>

source

pub fn rng(&self) -> RefMut<'static, Rng>

source

fn tasks(&self) -> RefMut<'static, Vec<Arc<Task>>>

source

pub fn net(&self) -> RefMut<'static, NetworkInterface>

source

pub fn wait_for_ip(self) -> PollFn<impl FnMut(&mut Context<'_>) -> Poll<()>>

source

pub fn schedule(&self) -> PollFn<impl FnMut(&mut Context<'_>) -> Poll<()>>

Interrupt task execution. This is useful to yield the CPU to other tasks.

-
source

pub fn sleep_us( +

source

pub fn sleep_us( self, us: u64, -) -> PollFn<impl FnMut(&mut Context<'_>) -> Poll<()>>

source

pub fn deep_sleep_us(&self, us: u64)

WARNING: this function halts all tasks

-
source

pub fn get_variable( +) -> PollFn<impl FnMut(&mut Context<'_>) -> Poll<()>>

source

pub fn deep_sleep_us(&self, us: u64)

WARNING: this function halts all tasks

+
source

pub fn get_variable( &self, name: &str, vendor: &VariableVendor, -) -> Result<(Vec<u8>, VariableAttributes), Error>

source

pub fn set_variable( +) -> Result<(Vec<u8>, VariableAttributes), Error>

source

pub fn set_variable( &self, name: &str, vendor: &VariableVendor, attrs: VariableAttributes, data: &[u8], -) -> Result<(), Error>

source

pub fn boot_options(&self) -> BootOptions

source

pub fn device_path_to_string(&self, device: &DevicePath) -> String

source

fn handle_on_device<P: Protocol>(&self, device: &DevicePath) -> Handle

Find the topmost device that implements this protocol.

-
source

fn all_handles<P: Protocol>(&self) -> Result<Vec<Handle>, Error>

source

fn open_handle<P: Protocol>( +) -> Result<(), Error>

source

pub fn boot_options(&self) -> BootOptions

source

pub fn device_path_to_string(&self, device: &DevicePath) -> String

source

fn handle_on_device<P: Protocol>(&self, device: &DevicePath) -> Handle

Find the topmost device that implements this protocol.

+
source

fn all_handles<P: Protocol>(&self) -> Result<Vec<Handle>, Error>

source

fn open_handle<P: Protocol>( &self, handle: Handle, -) -> Result<ScopedProtocol<'static, P>, Error>

source

fn open_protocol_on_device<P: Protocol>( +) -> Result<ScopedProtocol<P>, Error>

source

fn open_protocol_on_device<P: Protocol>( &self, device: &DevicePath, -) -> Result<ScopedProtocol<'static, P>, Error>

source

pub fn open_first_disk(&self) -> Disk

source

pub async fn connect(&self, ip: [u8; 4], port: u16) -> Result<TcpStream, Error>

source

pub async fn udp_bind(&self, port: Option<u16>) -> Result<UdpHandle, Error>

source

pub async fn read_key(&self) -> Result<Key, Error>

source

pub fn write_with_color(&self, msg: &str, fg: Color, bg: Color)

source

fn draw_ui(&self)

source

pub fn force_ui_redraw(&self)

source

pub fn set_ui_drawer<F: Fn(UefiOS) + 'static>(&self, f: F)

source

pub fn append_message(&self, msg: String, kind: MessageKind)

source

pub fn spawn<Fut>(&self, name: &'static str, f: Fut)
where +) -> Result<ScopedProtocol<P>, Error>

source

pub fn open_first_disk(&self) -> Disk

source

pub async fn connect(&self, ip: [u8; 4], port: u16) -> Result<TcpStream, Error>

source

pub async fn udp_bind(&self, port: Option<u16>) -> Result<UdpHandle, Error>

source

pub async fn read_key(&self) -> Result<Key, Error>

source

pub fn write_with_color(&self, msg: &str, fg: Color, bg: Color)

source

fn draw_ui(&self)

source

pub fn force_ui_redraw(&self)

source

pub fn set_ui_drawer<F: Fn(UefiOS) + 'static>(&self, f: F)

source

pub fn append_message(&self, msg: String, kind: MessageKind)

source

pub fn spawn<Fut>(&self, name: &'static str, f: Fut)
where Fut: Future<Output = ()> + 'static,

Spawn a new task.

-
source

pub fn reset(&self) -> !

Trait Implementations§

source§

impl Clone for UefiOS

source§

fn clone(&self) -> UefiOS

Returns a copy of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
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 T
where +

source

pub fn reset(&self) -> !

Trait Implementations§

source§

impl Clone for UefiOS

source§

fn clone(&self) -> UefiOS

Returns a copy of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
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 T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where 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
pixie_uefi::os

Struct UefiOSImpl

source
struct UefiOSImpl {
-    boot_services: &'static BootServices,
-    runtime_services: &'static RuntimeServices,
+UefiOSImpl in pixie_uefi::os - Rust
pixie_uefi::os

Struct UefiOSImpl

source
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

source

fn cols(&mut self) -> usize

source

pub fn write_with_color(&mut self, msg: &str, fg: Color, bg: Color)

source

pub fn maybe_advance_to_col(&mut self, col: usize)

source

pub 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 T
where +}

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

source

fn cols(&mut self) -> usize

source

pub fn write_with_color(&mut self, msg: &str, fg: Color, bg: Color)

source

pub fn maybe_advance_to_col(&mut self, col: usize)

source

pub 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 T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where 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
pixie_uefi::os

Module timer

source

Structs§

\ No newline at end of file +pixie_uefi::os::timer - Rust
pixie_uefi::os

Module timer

source

Structs§

\ 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
pixie_uefi::os::timer

Struct Timer

source
pub struct Timer {
+Timer in pixie_uefi::os::timer - Rust
pixie_uefi::os::timer

Struct Timer

source
pub struct Timer {
     ticks_at_start: i64,
     ticks_per_micro: i64,
-}

Fields§

§ticks_at_start: i64§ticks_per_micro: i64

Implementations§

source§

impl Timer

source

fn rdtsc() -> i64

source

pub fn new(boot_services: &BootServices) -> Timer

source

pub fn micros(&self) -> i64

source

pub fn instant(&self) -> Instant

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 T
where +}

Fields§

§ticks_at_start: i64§ticks_per_micro: i64

Implementations§

source§

impl Timer

source

fn rdtsc() -> i64

source

pub fn new() -> Timer

source

pub fn micros(&self) -> i64

source

pub fn instant(&self) -> Instant

Trait Implementations§

source§

impl Default for Timer

source§

fn default() -> Self

Returns the “default value” for a type. Read more

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 T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where 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.