Struct necsim_impls_std::event_log::recorder::EventLogConfig
source · pub struct EventLogConfig { /* private fields */ }
Implementations§
source§impl EventLogConfig
impl EventLogConfig
sourcepub fn try_new(directory: PathBuf, capacity: NonZeroUsize) -> Result<Self>
pub fn try_new(directory: PathBuf, capacity: NonZeroUsize) -> Result<Self>
§Errors
Fails to construct iff the parent of directory
cannot be created or
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
sourcepub fn create(self) -> Result<EventLogRecorder>
pub fn create(self) -> Result<EventLogRecorder>
§Errors
Fails to construct iff self.directory()
is not a writable directory.
Trait Implementations§
source§impl Debug for EventLogConfig
impl Debug for EventLogConfig
source§impl<'de> Deserialize<'de> for EventLogConfig
impl<'de> Deserialize<'de> for EventLogConfig
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Drop for EventLogConfig
impl Drop for EventLogConfig
Auto Trait Implementations§
impl Freeze for EventLogConfig
impl RefUnwindSafe for EventLogConfig
impl Send for EventLogConfig
impl Sync for EventLogConfig
impl Unpin for EventLogConfig
impl UnwindSafe for EventLogConfig
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