#[repr(i32)]pub enum InspectPhase {
INSPECT_PHASE_UNSPECIFIED = 0,
INSPECT_PHASE_PRE_RECEIVE = 1,
INSPECT_PHASE_QUARANTINE = 2,
}Available on crate feature
hooks only.Expand description
Pipeline phase of the inspection; SPEC-SERVER §11.1.
Variants§
INSPECT_PHASE_UNSPECIFIED = 0
Legacy unspecified phase; callers of the §11 contract send an explicit phase.
INSPECT_PHASE_PRE_RECEIVE = 1
Synchronous inspection before apply.
INSPECT_PHASE_QUARANTINE = 2
Asynchronous inspection after commit.
Implementations§
Source§impl InspectPhase
impl InspectPhase
Sourcepub const Unspecified: Self = Self::INSPECT_PHASE_UNSPECIFIED
pub const Unspecified: Self = Self::INSPECT_PHASE_UNSPECIFIED
Idiomatic alias for Self::INSPECT_PHASE_UNSPECIFIED; Debug prints the variant name.
Sourcepub const PreReceive: Self = Self::INSPECT_PHASE_PRE_RECEIVE
pub const PreReceive: Self = Self::INSPECT_PHASE_PRE_RECEIVE
Idiomatic alias for Self::INSPECT_PHASE_PRE_RECEIVE; Debug prints the variant name.
Sourcepub const Quarantine: Self = Self::INSPECT_PHASE_QUARANTINE
pub const Quarantine: Self = Self::INSPECT_PHASE_QUARANTINE
Idiomatic alias for Self::INSPECT_PHASE_QUARANTINE; Debug prints the variant name.
Trait Implementations§
Source§impl Clone for InspectPhase
impl Clone for InspectPhase
impl Copy for InspectPhase
Source§impl Debug for InspectPhase
impl Debug for InspectPhase
Source§impl Default for InspectPhase
impl Default for InspectPhase
Source§impl<'de> Deserialize<'de> for InspectPhase
impl<'de> Deserialize<'de> for InspectPhase
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Enumeration for InspectPhase
impl Enumeration for InspectPhase
Source§fn proto_name(&self) -> &'static str
fn proto_name(&self) -> &'static str
The name of this enum variant as it appears in the
.proto file.impl Eq for InspectPhase
Source§impl Hash for InspectPhase
impl Hash for InspectPhase
Source§impl PartialEq for InspectPhase
impl PartialEq for InspectPhase
Source§impl ProtoElemJson for InspectPhase
impl ProtoElemJson for InspectPhase
Source§fn serialize_proto_json<S: Serializer>(
v: &Self,
s: S,
) -> Result<S::Ok, S::Error>
fn serialize_proto_json<S: Serializer>( v: &Self, s: S, ) -> Result<S::Ok, S::Error>
Serialize this value with proto3 JSON semantics.
Source§fn deserialize_proto_json<'de, D: Deserializer<'de>>(
d: D,
) -> Result<Self, D::Error>
fn deserialize_proto_json<'de, D: Deserializer<'de>>( d: D, ) -> Result<Self, D::Error>
Deserialize a value with proto3 JSON semantics.
Source§impl Serialize for InspectPhase
impl Serialize for InspectPhase
impl StructuralPartialEq for InspectPhase
Auto Trait Implementations§
impl Freeze for InspectPhase
impl RefUnwindSafe for InspectPhase
impl Send for InspectPhase
impl Sync for InspectPhase
impl Unpin for InspectPhase
impl UnsafeUnpin for InspectPhase
impl UnwindSafe for InspectPhase
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