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

Struct

WriteFile

pub struct WriteFile {
    pub buf: MemoryRange,
    pub handle: FileHandle,
    pub write_len: usize,
}

Fields

buf: MemoryRangehandle: FileHandlewrite_len: usize

Trait Implementations

impl Debug for WriteFile

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

Formats the value using the given formatter. Read more

impl From<SimpleMemoryMessage> for WriteFile

fn from(msg: SimpleMemoryMessage) -> Self

Converts to this type from the input type.

impl From<WriteFile> for SimpleMemoryMessage

fn from(write: WriteFile) -> Self

Converts to this type from the input type.

impl LendMut for WriteFile

type Response = Result<usize, Error>

impl MessageId for WriteFile

const ID: MessageId = 2usize

unique message identifier

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

target server name

Auto Trait Implementations

impl Freeze for WriteFile

impl RefUnwindSafe for WriteFile

impl Send for WriteFile

impl Sync for WriteFile

impl Unpin for WriteFile

impl UnsafeUnpin for WriteFile

impl UnwindSafe for WriteFile