Struct ffmpeg_sys_the_third::AVIOInterruptCB
source · #[repr(C)]pub struct AVIOInterruptCB {
pub callback: Option<unsafe extern "C" fn(arg1: *mut c_void) -> c_int>,
pub opaque: *mut c_void,
}
Expand description
Callback for checking whether to abort blocking functions. AVERROR_EXIT is returned in this case by the interrupted function. During blocking operations, callback is called with opaque as parameter. If the callback returns 1, the blocking operation will be aborted.
No members can be added to this struct without a major bump, if new elements have been added after this struct in AVFormatContext or AVIOContext.
Fields§
§callback: Option<unsafe extern "C" fn(arg1: *mut c_void) -> c_int>
§opaque: *mut c_void
Trait Implementations§
source§impl Clone for AVIOInterruptCB
impl Clone for AVIOInterruptCB
source§fn clone(&self) -> AVIOInterruptCB
fn clone(&self) -> AVIOInterruptCB
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 AVIOInterruptCB
impl Debug for AVIOInterruptCB
source§impl PartialEq for AVIOInterruptCB
impl PartialEq for AVIOInterruptCB
source§fn eq(&self, other: &AVIOInterruptCB) -> bool
fn eq(&self, other: &AVIOInterruptCB) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AVIOInterruptCB
impl Eq for AVIOInterruptCB
impl StructuralPartialEq for AVIOInterruptCB
Auto Trait Implementations§
impl Freeze for AVIOInterruptCB
impl RefUnwindSafe for AVIOInterruptCB
impl !Send for AVIOInterruptCB
impl !Sync for AVIOInterruptCB
impl Unpin for AVIOInterruptCB
impl UnwindSafe for AVIOInterruptCB
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