Enum binary_stream::OpenType
source · [−]pub enum OpenType {
OpenAndCreate,
ReadWrite,
Open,
}Expand description
Indicates how the file stream should open the underlying file.
Variants
OpenAndCreate
Open and create the file if it does not exist.
This will truncate the file if it already exists.
ReadWrite
Open the file for reading and writing.
Open
Open the file for reading.
Auto Trait Implementations
impl RefUnwindSafe for OpenType
impl Send for OpenType
impl Sync for OpenType
impl Unpin for OpenType
impl UnwindSafe for OpenType
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