[−][src]Struct mail_slot::MailslotName
A mailslot name has a specific format, this struct will ensure the correct format is used
The format will always start with two slashes, then the domain name another slash the word "mailslot" another slash and and any valid windows path for the remainder
let local_path = MailslotName::local("name"); assert_eq!(r"\\.\mailslot\name", local_path.to_string()); let net_path = MailslotName::network("domain", "name"); assert_eq!(r"\\domain\mailslot\name", net_path.to_string());
Fields
domain: String
path: String
Methods
impl MailslotName
[src]
pub fn local(path: &str) -> Self
[src]
This will create a mailslot name with a local domain
pub fn network(domain: &str, path: &str) -> Self
[src]
This will create a mailslot name with a domain and path
pub fn default_domain(path: &str) -> Self
[src]
This will create a mailslot name with a default domain
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MailslotName
impl Send for MailslotName
impl Sync for MailslotName
impl Unpin for MailslotName
impl UnwindSafe for MailslotName
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,