Struct rsmpeg::ffi::AVIOInterruptCB [−][src]
#[repr(C)]pub struct AVIOInterruptCB { pub callback: Option<unsafe extern "C" fn(*mut c_void) -> i32>, 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(*mut c_void) -> i32>
opaque: *mut c_void
Trait Implementations
impl Clone for AVIOInterruptCB
[src]
impl Clone for AVIOInterruptCB
[src]pub fn clone(&self) -> AVIOInterruptCB
[src]
pub fn clone(&self) -> AVIOInterruptCB
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for AVIOInterruptCB
[src]
impl Debug for AVIOInterruptCB
[src]impl Copy for AVIOInterruptCB
[src]
Auto Trait Implementations
impl RefUnwindSafe for AVIOInterruptCB
impl !Send for AVIOInterruptCB
impl !Sync for AVIOInterruptCB
impl Unpin for AVIOInterruptCB
impl UnwindSafe for AVIOInterruptCB
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more