pub enum FileDescriptor {
StdIn,
StdOut,
StdErr,
HintRead,
HintWrite,
PreimageRead,
PreimageWrite,
Wildcard(usize),
}
Expand description
File descriptors available to the client
within the FPVM kernel.
Variants§
StdIn
Read-only standard input stream.
StdOut
Write-only standaard output stream.
StdErr
Write-only standard error stream.
HintRead
Read-only. Used to read the status of pre-image hinting.
HintWrite
Write-only. Used to provide pre-image hints
PreimageRead
Read-only. Used to read pre-images.
PreimageWrite
Write-only. Used to request pre-images.
Wildcard(usize)
Other file descriptor.
Trait Implementations§
Source§impl Clone for FileDescriptor
impl Clone for FileDescriptor
Source§fn clone(&self) -> FileDescriptor
fn clone(&self) -> FileDescriptor
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FileDescriptor
impl Debug for FileDescriptor
Source§impl From<FileDescriptor> for i32
impl From<FileDescriptor> for i32
Source§fn from(fd: FileDescriptor) -> Self
fn from(fd: FileDescriptor) -> Self
Converts to this type from the input type.
Source§impl From<FileDescriptor> for usize
impl From<FileDescriptor> for usize
Source§fn from(fd: FileDescriptor) -> Self
fn from(fd: FileDescriptor) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FileDescriptor
impl PartialEq for FileDescriptor
impl Copy for FileDescriptor
impl Eq for FileDescriptor
impl StructuralPartialEq for FileDescriptor
Auto Trait Implementations§
impl Freeze for FileDescriptor
impl RefUnwindSafe for FileDescriptor
impl Send for FileDescriptor
impl Sync for FileDescriptor
impl Unpin for FileDescriptor
impl UnwindSafe for FileDescriptor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)