pub struct NodeName(/* private fields */);Expand description
A human-readable node name.
Node names follow the format name@host, similar to Erlang node names.
For example: "node1@localhost" or "chat-server@192.168.1.100".
§Examples
use starlang_core::NodeName;
let name = NodeName::new("node1@localhost");
assert_eq!(name.short_name(), "node1");
assert_eq!(name.host(), "localhost");Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeName
impl<'de> Deserialize<'de> for NodeName
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for NodeName
impl StructuralPartialEq for NodeName
Auto Trait Implementations§
impl Freeze for NodeName
impl RefUnwindSafe for NodeName
impl Send for NodeName
impl Sync for NodeName
impl Unpin for NodeName
impl UnsafeUnpin for NodeName
impl UnwindSafe for NodeName
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