pub struct Alias { /* private fields */ }Expand description
One alias, checked.
The fields are private and Alias::new is the only way to make one, so there is no
route into the daemon that skips these checks. That matters now that aliases can come
from a configuration file as well as from the command line: two entry points and one
validating constructor is fine, two entry points and two copies of the rules is how the
looser copy becomes the one that gets used.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Alias
impl RefUnwindSafe for Alias
impl Send for Alias
impl Sync for Alias
impl Unpin for Alias
impl UnsafeUnpin for Alias
impl UnwindSafe for Alias
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