Enum tugger_code_signing::Signable [−][src]
pub enum Signable { WindowsFile(PathBuf), WindowsData(Vec<u8>), MachOFile(PathBuf, Vec<u8>), MachOData(Vec<u8>), AppleBundle(PathBuf), }
Represents a known, typed entity which is signable.
Variants
WindowsFile(PathBuf)
A file that is signable on Windows.
Data that is signable on Windows.
TODO store a Cow.
A signable Mach-O file.
We have to obtain the Mach-O data as part of evaluating whether it is signable. So we keep a reference to it to avoid a re-read later.
Signable Mach-O data.
AppleBundle(PathBuf)
An Apple bundle, persisted on the filesystem as a directory.
Implementations
impl Signable
[src]
impl Signable
[src]pub fn signing_methods(&self) -> SigningMethods
[src]
pub fn signing_methods(&self) -> SigningMethods
[src]Obtain signing methods that are supported.
pub fn is_signable(&self) -> bool
[src]
pub fn is_signable(&self) -> bool
[src]Whether we are capable of signing.
pub fn source_file(&self) -> Option<&Path>
[src]
pub fn source_file(&self) -> Option<&Path>
[src]Obtain the filesystem path of the signable entity, if it is backed by a file.
pub fn source_directory(&self) -> Option<&Path>
[src]
pub fn source_directory(&self) -> Option<&Path>
[src]Obtain the filesystem path of the signable directory, if it is backed by a directory.
pub fn destination_compatibility(
&self,
destination: &SigningDestination
) -> SigningDestinationCompatibility
[src]
pub fn destination_compatibility(
&self,
destination: &SigningDestination
) -> SigningDestinationCompatibility
[src]Resolves the compatibility for signing this entity to a given SigningDestination.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Signable
impl Send for Signable
impl Sync for Signable
impl Unpin for Signable
impl UnwindSafe for Signable
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,