Skip to main content

AsTarget

Trait AsTarget 

Source
pub trait AsTarget<F> {
    // Required method
    fn as_target(&self) -> Target<'_, F>;
}
Expand description

Borrow a target for metadata queries, attribute updates or filesystem statistics. Paths can be passed directly; use Target for handles or mixed vectors. Conversion performs no I/O. Clients convert each operand once at preflight and retain that target for routing, execution, and error context.

Required Methods§

Source

fn as_target(&self) -> Target<'_, F>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<F, P> AsTarget<F> for P
where P: AsRef<Path>,

Source§

impl<F> AsTarget<F> for Target<'_, F>