Struct oc_wasm_opencomputers::filesystem::ReadHandle
source · [−]pub struct ReadHandle { /* private fields */ }Expand description
A handle to a file open for reading.
The file is closed when the handle is dropped.
Trait Implementations
sourceimpl Debug for ReadHandle
impl Debug for ReadHandle
sourceimpl Hash for ReadHandle
impl Hash for ReadHandle
sourceimpl<'handle, 'invoker, 'buffer, B: 'buffer + Buffer> Lockable<'invoker, 'buffer, B> for &'handle ReadHandle
impl<'handle, 'invoker, 'buffer, B: 'buffer + Buffer> Lockable<'invoker, 'buffer, B> for &'handle ReadHandle
type Locked = LockedReadHandle<'handle, 'invoker, 'buffer, B>
type Locked = LockedReadHandle<'handle, 'invoker, 'buffer, B>
The type obtained when locking the component.
sourceimpl Ord for ReadHandle
impl Ord for ReadHandle
sourceimpl PartialEq<ReadHandle> for ReadHandle
impl PartialEq<ReadHandle> for ReadHandle
sourcefn eq(&self, other: &ReadHandle) -> bool
fn eq(&self, other: &ReadHandle) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &ReadHandle) -> bool
fn ne(&self, other: &ReadHandle) -> bool
This method tests for !=.
sourceimpl PartialOrd<ReadHandle> for ReadHandle
impl PartialOrd<ReadHandle> for ReadHandle
sourcefn partial_cmp(&self, other: &ReadHandle) -> Option<Ordering>
fn partial_cmp(&self, other: &ReadHandle) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Eq for ReadHandle
impl StructuralEq for ReadHandle
impl StructuralPartialEq for ReadHandle
Auto Trait Implementations
impl RefUnwindSafe for ReadHandle
impl Send for ReadHandle
impl Sync for ReadHandle
impl Unpin for ReadHandle
impl UnwindSafe for ReadHandle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more