#[repr(C)]pub struct AVIOInterruptCB {
pub callback: Option<unsafe extern "C" fn(arg1: *mut c_void) -> c_int>,
pub opaque: *mut c_void,
}展开描述
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_voidtrait 实现§
源代码§impl Clone for AVIOInterruptCB
impl Clone for AVIOInterruptCB
源代码§fn clone(&self) -> AVIOInterruptCB
fn clone(&self) -> AVIOInterruptCB
Returns a duplicate of the value. 阅读更多
1.0.0 · 源代码§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
从
source 执行拷贝赋值。 阅读更多源代码§impl Debug for AVIOInterruptCB
impl Debug for AVIOInterruptCB
源代码§impl PartialEq for AVIOInterruptCB
impl PartialEq for AVIOInterruptCB
impl Copy for AVIOInterruptCB
impl Eq for AVIOInterruptCB
impl StructuralPartialEq for AVIOInterruptCB
自动 trait 实现§
impl Freeze for AVIOInterruptCB
impl RefUnwindSafe for AVIOInterruptCB
impl !Send for AVIOInterruptCB
impl !Sync for AVIOInterruptCB
impl Unpin for AVIOInterruptCB
impl UnsafeUnpin for AVIOInterruptCB
impl UnwindSafe for AVIOInterruptCB
blanket 实现§
源代码§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
源代码§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
从拥有的值可变地借用。 阅读更多