pub struct ConfigureFile {
pub entries: u64,
pub data: u64,
pub initial_offset: u64,
/* private fields */
}Expand description
Describes the layout of a shared memory in a Writer.
Fields§
§entries: u64The number of entries in the sequence ring buffer.
data: u64The number of bytes in the data ring buffer.
initial_offset: u64The offset of the next-to-write entry.
Implementations§
Source§impl ConfigureFile
impl ConfigureFile
Sourcepub fn is_initialized(&self) -> bool
pub fn is_initialized(&self) -> bool
Is the configuration data complete?
Sourcepub fn or_insert_with(&mut self, replace: impl FnOnce(&mut Self))
pub fn or_insert_with(&mut self, replace: impl FnOnce(&mut Self))
Complete this configuration, if it is not already.
Trait Implementations§
Source§impl Debug for ConfigureFile
impl Debug for ConfigureFile
Source§impl Default for ConfigureFile
impl Default for ConfigureFile
Source§fn default() -> ConfigureFile
fn default() -> ConfigureFile
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConfigureFile
impl RefUnwindSafe for ConfigureFile
impl Send for ConfigureFile
impl Sync for ConfigureFile
impl Unpin for ConfigureFile
impl UnwindSafe for ConfigureFile
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