Be aware: Foundation will NEVER ask for your seed words, device PIN, or call you unexpectedly. If anyone does, it's a scam.

Struct

ReadFile

pub struct ReadFile {
    pub buf: MemoryRange,
    pub handle: FileHandle,
    pub read_len: usize,
}

Fields

buf: MemoryRangehandle: FileHandleread_len: usize

Trait Implementations

impl Debug for ReadFile

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

Formats the value using the given formatter. Read more

impl From<ReadFile> for SimpleMemoryMessage

fn from(read: ReadFile) -> Self

Converts to this type from the input type.

impl From<SimpleMemoryMessage> for ReadFile

fn from(msg: SimpleMemoryMessage) -> Self

Converts to this type from the input type.

impl LendMut for ReadFile

type Response = Result<usize, Error>

impl MessageId for ReadFile

const ID: MessageId = 1usize

unique message identifier

const SERVER: &'static str = "os/fs"

target server name

Auto Trait Implementations

impl Freeze for ReadFile

impl RefUnwindSafe for ReadFile

impl Send for ReadFile

impl Sync for ReadFile

impl Unpin for ReadFile

impl UnsafeUnpin for ReadFile

impl UnwindSafe for ReadFile