pub struct ScaleServiceCatalog { /* private fields */ }Expand description
Validated Compose ACL templates owned by the Box execution plane.
Implementations§
Source§impl ScaleServiceCatalog
impl ScaleServiceCatalog
pub fn from_acl_file( path: &Path, project_name: impl Into<String>, isolation: ExecutionIsolation, ) -> Result<Self, ScaleCatalogError>
pub fn from_acl_str( source: &str, project_name: impl Into<String>, isolation: ExecutionIsolation, ) -> Result<Self, ScaleCatalogError>
pub fn contains(&self, service: &str) -> bool
pub fn services(&self) -> Vec<String>
pub fn guest_port( &self, service: &str, ) -> Result<Option<u16>, ScaleCatalogError>
pub fn create_request( &self, service: &str, slot: u32, ) -> Result<CreateExecutionRequest, ScaleCatalogError>
Trait Implementations§
Source§impl Clone for ScaleServiceCatalog
impl Clone for ScaleServiceCatalog
Source§fn clone(&self) -> ScaleServiceCatalog
fn clone(&self) -> ScaleServiceCatalog
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 moreAuto Trait Implementations§
impl Freeze for ScaleServiceCatalog
impl RefUnwindSafe for ScaleServiceCatalog
impl Send for ScaleServiceCatalog
impl Sync for ScaleServiceCatalog
impl Unpin for ScaleServiceCatalog
impl UnsafeUnpin for ScaleServiceCatalog
impl UnwindSafe for ScaleServiceCatalog
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
Mutably borrows from an owned value. Read more
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> ⓘ
Converts
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> ⓘ
Converts
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