Enum bulwark_config::PluginLocation
source · pub enum PluginLocation {
Local(PathBuf),
Remote(Url),
Bytes(Bytes),
}
Expand description
The location where the plugin WASM can be loaded from.
Variants§
Local(PathBuf)
The plugin is a local file.
Remote(Url)
The plugin is a remote file served over HTTPS.
Bytes(Bytes)
The plugin is an binary blob.
Trait Implementations§
source§impl Clone for PluginLocation
impl Clone for PluginLocation
source§fn clone(&self) -> PluginLocation
fn clone(&self) -> PluginLocation
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 PluginLocation
impl Debug for PluginLocation
source§impl Default for PluginLocation
impl Default for PluginLocation
Auto Trait Implementations§
impl !Freeze for PluginLocation
impl RefUnwindSafe for PluginLocation
impl Send for PluginLocation
impl Sync for PluginLocation
impl Unpin for PluginLocation
impl UnwindSafe for PluginLocation
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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