pub enum PathResolvable {
Path(ActorPath),
ActorId(Uuid),
Alias(String),
Segments(Vec<String>),
System,
}Expand description
Something that can resolved to some kind of path by the dispatcher
Variants§
Path(ActorPath)
An actual actor path
ActorId(Uuid)
The unique id of an actor
Can be resolved to a unique path in the current system.
Alias(String)
An actor path alias with all segments merged
Can be resolved to a named path in the current system.
Segments(Vec<String>)
An actor path alias with all segments individually
Can be resolved to a named path in the current system.
System
The system path (as provided by the dispatcher)
Trait Implementations§
Source§impl Clone for PathResolvable
impl Clone for PathResolvable
Source§fn clone(&self) -> PathResolvable
fn clone(&self) -> PathResolvable
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 PathResolvable
impl Debug for PathResolvable
Source§impl From<ActorPath> for PathResolvable
impl From<ActorPath> for PathResolvable
Source§fn from(path: ActorPath) -> PathResolvable
fn from(path: ActorPath) -> PathResolvable
Converts to this type from the input type.
Source§impl FromStr for PathResolvable
impl FromStr for PathResolvable
Source§type Err = PathParseError
type Err = PathParseError
The associated error which can be returned from parsing.
Source§fn from_str(
value: &str,
) -> Result<PathResolvable, <PathResolvable as FromStr>::Err>
fn from_str( value: &str, ) -> Result<PathResolvable, <PathResolvable as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl TryFrom<String> for PathResolvable
impl TryFrom<String> for PathResolvable
Source§type Error = PathParseError
type Error = PathParseError
The type returned in the event of a conversion error.
Source§fn try_from(
value: String,
) -> Result<PathResolvable, <PathResolvable as TryFrom<String>>::Error>
fn try_from( value: String, ) -> Result<PathResolvable, <PathResolvable as TryFrom<String>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PathResolvable
impl RefUnwindSafe for PathResolvable
impl Send for PathResolvable
impl Sync for PathResolvable
impl Unpin for PathResolvable
impl UnsafeUnpin for PathResolvable
impl UnwindSafe for PathResolvable
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