pub struct RecordingTarget { /* private fields */ }Expand description
An owned absolute output prefix/path interpreted by the recorder’s naming policy.
Construction freezes the current directory for relative paths and preserves
the prefix text used in naming, including trailing separators and .
components. It neither creates directories nor creates/removes/overwrites a
file. The SDK requires losslessly representable UTF-8 paths.
Implementations§
Source§impl RecordingTarget
impl RecordingTarget
Sourcepub fn new(path: impl AsRef<Path>) -> Result<Self>
pub fn new(path: impl AsRef<Path>) -> Result<Self>
Take an output prefix or exact path, making a relative one absolute.
§Errors
Error::InvalidInput when the path is empty or is not UTF-8,
Error::InvalidCString when it contains a NUL, and Error::Io
when the operating system cannot resolve a relative path.
Trait Implementations§
Source§impl Clone for RecordingTarget
impl Clone for RecordingTarget
Source§impl Debug for RecordingTarget
impl Debug for RecordingTarget
impl Eq for RecordingTarget
Source§impl Hash for RecordingTarget
impl Hash for RecordingTarget
Source§impl PartialEq for RecordingTarget
impl PartialEq for RecordingTarget
impl StructuralPartialEq for RecordingTarget
Auto Trait Implementations§
impl Freeze for RecordingTarget
impl RefUnwindSafe for RecordingTarget
impl Send for RecordingTarget
impl Sync for RecordingTarget
impl Unpin for RecordingTarget
impl UnsafeUnpin for RecordingTarget
impl UnwindSafe for RecordingTarget
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