Enum wick_config::config::ResourceRestriction
source · pub enum ResourceRestriction {
Volume(VolumeRestriction),
Url(UrlRestriction),
TcpPort(PortRestriction),
UdpPort(PortRestriction),
}Variants§
Trait Implementations§
source§impl Clone for ResourceRestriction
impl Clone for ResourceRestriction
source§fn clone(&self) -> ResourceRestriction
fn clone(&self) -> ResourceRestriction
Returns a copy of the value. Read more
1.0.0 · 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 ResourceRestriction
impl Debug for ResourceRestriction
source§impl Serialize for ResourceRestriction
impl Serialize for ResourceRestriction
source§impl TryFrom<ResourceRestriction> for ResourceRestriction
impl TryFrom<ResourceRestriction> for ResourceRestriction
§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
source§fn try_from(value: ResourceRestriction) -> Result<Self, ManifestError>
fn try_from(value: ResourceRestriction) -> Result<Self, ManifestError>
Performs the conversion.
source§impl TryFrom<ResourceRestriction> for ResourceRestriction
impl TryFrom<ResourceRestriction> for ResourceRestriction
§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
source§fn try_from(value: ResourceRestriction) -> Result<Self, ManifestError>
fn try_from(value: ResourceRestriction) -> Result<Self, ManifestError>
Performs the conversion.
Auto Trait Implementations§
impl RefUnwindSafe for ResourceRestriction
impl Send for ResourceRestriction
impl Sync for ResourceRestriction
impl Unpin for ResourceRestriction
impl UnwindSafe for ResourceRestriction
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