pub struct LaunchdLabelPrefix(/* private fields */);Expand description
A reverse-DNS launchd label prefix (e.g. com.example.my-daemon).
Limits: 1–128 bytes, one or more non-empty dot-separated segments
of ASCII alphanumerics, -, or _; no leading, trailing, or
doubled dots.
Implementations§
Source§impl LaunchdLabelPrefix
impl LaunchdLabelPrefix
Sourcepub fn try_new(prefix: impl Into<String>) -> Result<Self, InvalidServiceValue>
pub fn try_new(prefix: impl Into<String>) -> Result<Self, InvalidServiceValue>
Validate and wrap a launchd label prefix.
§Errors
Returns InvalidServiceValue when the prefix is empty,
longer than 128 bytes, or not dot-separated segments of ASCII
alphanumerics, -, or _.
Trait Implementations§
Source§impl AsRef<str> for LaunchdLabelPrefix
impl AsRef<str> for LaunchdLabelPrefix
Source§impl Clone for LaunchdLabelPrefix
impl Clone for LaunchdLabelPrefix
Source§fn clone(&self) -> LaunchdLabelPrefix
fn clone(&self) -> LaunchdLabelPrefix
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LaunchdLabelPrefix
impl Debug for LaunchdLabelPrefix
Source§impl Display for LaunchdLabelPrefix
impl Display for LaunchdLabelPrefix
impl Eq for LaunchdLabelPrefix
Source§impl FromStr for LaunchdLabelPrefix
impl FromStr for LaunchdLabelPrefix
Source§impl Hash for LaunchdLabelPrefix
impl Hash for LaunchdLabelPrefix
Source§impl PartialEq for LaunchdLabelPrefix
impl PartialEq for LaunchdLabelPrefix
impl StructuralPartialEq for LaunchdLabelPrefix
Auto Trait Implementations§
impl Freeze for LaunchdLabelPrefix
impl RefUnwindSafe for LaunchdLabelPrefix
impl Send for LaunchdLabelPrefix
impl Sync for LaunchdLabelPrefix
impl Unpin for LaunchdLabelPrefix
impl UnsafeUnpin for LaunchdLabelPrefix
impl UnwindSafe for LaunchdLabelPrefix
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