#[non_exhaustive]pub enum NameRefusal {
Empty,
Dotted,
NotASegment,
StaticChild,
}Expand description
Why an instance name cannot reach its instance (RETURNS-46): the service
routes <parent>.<name>.<method> by name’s segment — a static child
before the dynamic one — and refuses a path whose segments are not
[a-z][a-z0-9_]* (plexus-auth-core’s MethodPath). A name that is a
method of the parent is the instance: the service takes the first segment
after the parent as a child, never as the parent’s method.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Empty
"": there is no segment.
Dotted
It holds a .: the service would read two segments.
NotASegment
It is not a segment of the service’s path grammar,
[a-z][a-z0-9_]*: the service refuses the call (" ", "LEFT",
"acme-co", "acme").
StaticChild
It is a static sibling’s segment: the service routes it there.
Trait Implementations§
Source§impl Clone for NameRefusal
impl Clone for NameRefusal
impl Copy for NameRefusal
Source§impl Debug for NameRefusal
impl Debug for NameRefusal
Source§impl Display for NameRefusal
impl Display for NameRefusal
impl Eq for NameRefusal
Source§impl Hash for NameRefusal
impl Hash for NameRefusal
Source§impl PartialEq for NameRefusal
impl PartialEq for NameRefusal
impl StructuralPartialEq for NameRefusal
Auto Trait Implementations§
impl Freeze for NameRefusal
impl RefUnwindSafe for NameRefusal
impl Send for NameRefusal
impl Sync for NameRefusal
impl Unpin for NameRefusal
impl UnsafeUnpin for NameRefusal
impl UnwindSafe for NameRefusal
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