pub struct ParsedConnectPoint(ConnectPointEnum<Unresolved>);Expand description
A connect point, as deserialized from TOML.
Connect points tell an RPC client how to reach an RPC server, and tell an RPC server where and how to listen for connections for RPC clients.
This type may have members containing symbolic paths, such as
${USER_HOME} or ${ARTI_LOCAL_STATE}.
To convert these paths to a usable format,
invoke ParsedConnectPoint::resolve() on this object.
Tuple Fields§
§0: ConnectPointEnum<Unresolved>Implementations§
Source§impl ParsedConnectPoint
impl ParsedConnectPoint
Sourcepub fn resolve(
&self,
resolver: &CfgPathResolver,
) -> Result<ResolvedConnectPoint, ResolveError>
pub fn resolve( &self, resolver: &CfgPathResolver, ) -> Result<ResolvedConnectPoint, ResolveError>
Sourcepub fn superuser_permission(&self) -> SuperuserPermission
pub fn superuser_permission(&self) -> SuperuserPermission
Check whether authenticating this connect point grants superuser permission.
Sourcepub fn is_explicit_abort(&self) -> bool
pub fn is_explicit_abort(&self) -> bool
Return true if this connect point is an explicit abort.
Source§impl ParsedConnectPoint
impl ParsedConnectPoint
Sourcepub fn load_dir<'a>(
path: &Path,
mistrust: &Mistrust,
options: &'a HashMap<PathBuf, LoadOptions>,
) -> Result<ConnPointIterator<'a>, LoadError>
pub fn load_dir<'a>( path: &Path, mistrust: &Mistrust, options: &'a HashMap<PathBuf, LoadOptions>, ) -> Result<ConnPointIterator<'a>, LoadError>
Load all the connect files from a directory.
The directory, and individual files loaded within it,
must satisfy mistrust.
Within a directory:
- only filenames ending with
.tomlare considered. - on unix, filenames beginning with
.are ignored. - files are considered in lexicographic order.
Use options as a set of per-file options
mapping the names of files within path
to rules for reading them.
Return an iterator yielding, for each element of the directory,
its filename, and a ParsedConnectPoint or an error.
Trait Implementations§
Source§impl Clone for ParsedConnectPoint
impl Clone for ParsedConnectPoint
Source§fn clone(&self) -> ParsedConnectPoint
fn clone(&self) -> ParsedConnectPoint
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ParsedConnectPoint
impl Debug for ParsedConnectPoint
Auto Trait Implementations§
impl Freeze for ParsedConnectPoint
impl RefUnwindSafe for ParsedConnectPoint
impl Send for ParsedConnectPoint
impl Sync for ParsedConnectPoint
impl Unpin for ParsedConnectPoint
impl UnsafeUnpin for ParsedConnectPoint
impl UnwindSafe for ParsedConnectPoint
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more