#[repr(transparent)]pub struct AVIOFlag(pub i32);
Expand description
I/O flags used in FFmpeg’s AVIOContext
.
These flags define how a file or stream should be opened and accessed.
See the official FFmpeg documentation: https://ffmpeg.org/doxygen/trunk/avio_8h.html
Tuple Fields§
§0: i32
Implementations§
Source§impl AVIOFlag
impl AVIOFlag
Sourcepub const Read: Self
pub const Read: Self
Open the resource for reading.
- Used for: Opening files or streams in read mode.
- Binary representation:
0b0000000000000001
- Equivalent to:
AVIO_FLAG_READ
Sourcepub const Write: Self
pub const Write: Self
Open the resource for writing.
- Used for: Creating or overwriting files.
- Binary representation:
0b0000000000000010
- Equivalent to:
AVIO_FLAG_WRITE
Sourcepub const ReadWrite: Self
pub const ReadWrite: Self
Open the resource for both reading and writing.
- Used for: Modifying an existing file or stream.
- Binary representation:
0b0000000000000011
- Equivalent to:
AVIO_FLAG_READ_WRITE
Trait Implementations§
Source§impl BitAndAssign for AVIOFlag
impl BitAndAssign for AVIOFlag
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moreSource§impl BitOrAssign for AVIOFlag
impl BitOrAssign for AVIOFlag
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moreSource§impl BitXorAssign for AVIOFlag
impl BitXorAssign for AVIOFlag
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moreSource§impl Ord for AVIOFlag
impl Ord for AVIOFlag
Source§impl PartialOrd for AVIOFlag
impl PartialOrd for AVIOFlag
impl Copy for AVIOFlag
impl Eq for AVIOFlag
impl StructuralPartialEq for AVIOFlag
Auto Trait Implementations§
impl Freeze for AVIOFlag
impl RefUnwindSafe for AVIOFlag
impl Send for AVIOFlag
impl Sync for AVIOFlag
impl Unpin for AVIOFlag
impl UnwindSafe for AVIOFlag
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