#[non_exhaustive]pub enum DescriptorSource {
Protoc,
Precompiled(PathBuf),
}Expand description
Source of the FileDescriptorSet. Spec 12 § 4.
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.
Protoc
Invoke protoc (default). Requires it on PATH or via
PROTOC env.
Precompiled(PathBuf)
Use a pre-built FDS file (skips protoc invocation).
Trait Implementations§
Source§impl Clone for DescriptorSource
impl Clone for DescriptorSource
Source§fn clone(&self) -> DescriptorSource
fn clone(&self) -> DescriptorSource
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 moreSource§impl Debug for DescriptorSource
impl Debug for DescriptorSource
Source§impl Default for DescriptorSource
impl Default for DescriptorSource
Source§fn default() -> DescriptorSource
fn default() -> DescriptorSource
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DescriptorSource
impl RefUnwindSafe for DescriptorSource
impl Send for DescriptorSource
impl Sync for DescriptorSource
impl Unpin for DescriptorSource
impl UnsafeUnpin for DescriptorSource
impl UnwindSafe for DescriptorSource
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