Enum specifications::arch::Arch
source · pub enum Arch {
X86_64,
Aarch64,
}
Expand description
The Arch enum defines possible architectures that we know of and love
Variants§
Implementations§
source§impl Arch
impl Arch
sourcepub fn brane(&self) -> ArchBraneFormatter<'_>
pub fn brane(&self) -> ArchBraneFormatter<'_>
Allows one to serialize the architecture for use in the Brane ecosystem.
§Returns
An ArchBraneFormatter
that implements Display in a Brane-compatible way.
sourcepub fn rust(&self) -> ArchRustFormatter<'_>
pub fn rust(&self) -> ArchRustFormatter<'_>
Allows one to serialize the architecture for use in the Rust ecosystem.
§Returns
An ArchRustFormatter
that implements Display in a Rust-compatible way.
sourcepub fn docker(&self) -> ArchDockerFormatter<'_>
pub fn docker(&self) -> ArchDockerFormatter<'_>
Allows one to serialize the architecture for use in the Docker ecosystem.
§Returns
An ArchDockerFormatter
that implements Display in a Docker-compatible way.
sourcepub fn juicefs(&self) -> ArchJuiceFsFormatter<'_>
pub fn juicefs(&self) -> ArchJuiceFsFormatter<'_>
Allows one to serialize the architecture for use in the Juice FS ecosystem.
§Returns
An ArchJuiceFsFormatter
that implements Display in a Juice FS-compatible way.
sourcepub fn cfssl(&self) -> ArchCfsslFormatter<'_>
pub fn cfssl(&self) -> ArchCfsslFormatter<'_>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Arch
impl<'de> Deserialize<'de> for Arch
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Arch
impl Eq for Arch
impl StructuralPartialEq for Arch
Auto Trait Implementations§
impl Freeze for Arch
impl RefUnwindSafe for Arch
impl Send for Arch
impl Sync for Arch
impl Unpin for Arch
impl UnwindSafe for Arch
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request