Struct necsim_impls_std::event_log::recorder::EventLogRecorder
source · pub struct EventLogRecorder { /* private fields */ }
Implementations§
source§impl EventLogRecorder
impl EventLogRecorder
sourcepub fn try_new(
directory: PathBuf,
segment_capacity: NonZeroUsize
) -> Result<Self>
pub fn try_new( directory: PathBuf, segment_capacity: NonZeroUsize ) -> Result<Self>
§Errors
Fails to construct iff directory
is not a writable directory.
sourcepub fn new_child_log(&self, child: &str) -> Result<Self>
pub fn new_child_log(&self, child: &str) -> Result<Self>
§Errors
Fails to construct iff
child
is not a valid single-component path- newly creating a writable child directory fails
pub fn directory(&self) -> &Path
pub fn set_event_filter( &mut self, record_speciation: bool, record_dispersal: bool )
pub fn record_speciation(&mut self, event: &SpeciationEvent)
pub fn record_dispersal(&mut self, event: &DispersalEvent)
Trait Implementations§
source§impl Debug for EventLogRecorder
impl Debug for EventLogRecorder
Auto Trait Implementations§
impl Freeze for EventLogRecorder
impl RefUnwindSafe for EventLogRecorder
impl Send for EventLogRecorder
impl Sync for EventLogRecorder
impl Unpin for EventLogRecorder
impl UnwindSafe for EventLogRecorder
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
§impl<T> ExtractDiscriminant for T
impl<T> ExtractDiscriminant for T
§type Discriminant = <T as ExtractDiscriminantSpec<<T as DiscriminantKind>::Discriminant>>::Ty
type Discriminant = <T as ExtractDiscriminantSpec<<T as DiscriminantKind>::Discriminant>>::Ty
The type of the discriminant, which must satisfy the trait bounds
required by
core::mem::Discriminant
. Read more