Struct rusteron_media_driver::AeronMappedFile
source · pub struct AeronMappedFile { /* private fields */ }
Implementations§
source§impl AeronMappedFile
impl AeronMappedFile
pub fn new(addr: *mut c_void, length: usize) -> Result<Self, AeronCError>
pub fn new_zeroed() -> Result<Self, AeronCError>
pub fn addr(&self) -> *mut c_void
pub fn length(&self) -> usize
pub fn aeron_map_new_file( &self, path: &str, fill_with_zeroes: bool, ) -> Result<i32, AeronCError>
pub fn aeron_map_existing_file(&self, path: &str) -> Result<i32, AeronCError>
pub fn aeron_unmap(&self) -> Result<i32, AeronCError>
pub fn aeron_is_driver_active_with_cnc( &self, timeout_ms: i64, now_ms: i64, log_func: aeron_log_func_t, ) -> bool
pub fn get_inner(&self) -> *mut aeron_mapped_file_t
Trait Implementations§
source§impl Clone for AeronMappedFile
impl Clone for AeronMappedFile
source§fn clone(&self) -> AeronMappedFile
fn clone(&self) -> AeronMappedFile
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 AeronMappedFile
impl Debug for AeronMappedFile
source§impl Default for AeronMappedFile
impl Default for AeronMappedFile
This will create an instance where the struct is zeroed, use with care
source§impl Deref for AeronMappedFile
impl Deref for AeronMappedFile
source§impl From<&AeronMappedFile> for *mut aeron_mapped_file_t
impl From<&AeronMappedFile> for *mut aeron_mapped_file_t
source§fn from(value: &AeronMappedFile) -> Self
fn from(value: &AeronMappedFile) -> Self
Converts to this type from the input type.
source§impl From<*const aeron_mapped_file_stct> for AeronMappedFile
impl From<*const aeron_mapped_file_stct> for AeronMappedFile
source§fn from(value: *const aeron_mapped_file_t) -> Self
fn from(value: *const aeron_mapped_file_t) -> Self
Converts to this type from the input type.
source§impl From<*mut aeron_mapped_file_stct> for AeronMappedFile
impl From<*mut aeron_mapped_file_stct> for AeronMappedFile
source§fn from(value: *mut aeron_mapped_file_t) -> Self
fn from(value: *mut aeron_mapped_file_t) -> Self
Converts to this type from the input type.
source§impl From<AeronMappedFile> for *mut aeron_mapped_file_t
impl From<AeronMappedFile> for *mut aeron_mapped_file_t
source§fn from(value: AeronMappedFile) -> Self
fn from(value: AeronMappedFile) -> Self
Converts to this type from the input type.
source§impl From<AeronMappedFile> for aeron_mapped_file_t
impl From<AeronMappedFile> for aeron_mapped_file_t
source§fn from(value: AeronMappedFile) -> Self
fn from(value: AeronMappedFile) -> Self
Converts to this type from the input type.
source§impl From<aeron_mapped_file_stct> for AeronMappedFile
impl From<aeron_mapped_file_stct> for AeronMappedFile
source§fn from(value: aeron_mapped_file_t) -> Self
fn from(value: aeron_mapped_file_t) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AeronMappedFile
impl !RefUnwindSafe for AeronMappedFile
impl !Send for AeronMappedFile
impl !Sync for AeronMappedFile
impl Unpin for AeronMappedFile
impl !UnwindSafe for AeronMappedFile
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)