pub struct SystemdFdName<'a>(/* private fields */);Expand description
A validated name for a systemd socket-activation file descriptor.
Names appear in the LISTEN_FDNAMES environment variable as
colon-separated values. The constructor validates that the name
conforms to systemd’s fdname_is_valid() rules: at most 255
printable ASCII characters, excluding :.
use cap_std_ext::cmdext::SystemdFdName;
let name = SystemdFdName::new("varlink");Implementations§
Trait Implementations§
Source§impl<'a> Clone for SystemdFdName<'a>
impl<'a> Clone for SystemdFdName<'a>
Source§fn clone(&self) -> SystemdFdName<'a>
fn clone(&self) -> SystemdFdName<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for SystemdFdName<'a>
impl<'a> Debug for SystemdFdName<'a>
impl<'a> Copy for SystemdFdName<'a>
Auto Trait Implementations§
impl<'a> Freeze for SystemdFdName<'a>
impl<'a> RefUnwindSafe for SystemdFdName<'a>
impl<'a> Send for SystemdFdName<'a>
impl<'a> Sync for SystemdFdName<'a>
impl<'a> Unpin for SystemdFdName<'a>
impl<'a> UnsafeUnpin for SystemdFdName<'a>
impl<'a> UnwindSafe for SystemdFdName<'a>
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