Skip to main content

EventName

Enum EventName 

Source
pub enum EventName {
Show 63 variants ObjectAccessedGet = 1, ObjectAccessedGetRetention = 2, ObjectAccessedGetLegalHold = 3, ObjectAccessedHead = 4, ObjectAccessedAttributes = 5, ObjectCreatedCompleteMultipartUpload = 6, ObjectCreatedCopy = 7, ObjectCreatedPost = 8, ObjectCreatedPut = 9, ObjectCreatedPutRetention = 10, ObjectCreatedPutLegalHold = 11, ObjectTaggingPut = 12, ObjectTaggingDelete = 13, ObjectRemovedDelete = 14, ObjectRemovedDeleteMarkerCreated = 15, ObjectRemovedDeleteAllVersions = 16, ObjectRemovedNoOP = 17, BucketCreated = 18, BucketRemoved = 19, ObjectReplicationFailed = 20, ObjectReplicationComplete = 21, ObjectReplicationMissedThreshold = 22, ObjectReplicationReplicatedAfterThreshold = 23, ObjectReplicationNotTracked = 24, ObjectRestorePost = 25, ObjectRestoreCompleted = 26, ObjectTransitionFailed = 27, ObjectTransitionComplete = 28, ScannerManyVersions = 29, ScannerLargeVersions = 30, ScannerBigPrefix = 31, LifecycleDelMarkerExpirationDelete = 32, ObjectAclPut = 33, LifecycleExpirationDelete = 34, LifecycleExpirationDeleteMarkerCreated = 35, LifecycleTransition = 36, IntelligentTiering = 37, ObjectAccessedAll = 38, ObjectCreatedAll = 39, ObjectRemovedAll = 40, ObjectReplicationAll = 41, ObjectRestoreAll = 42, ObjectTaggingAll = 43, LifecycleExpirationAll = 44, ObjectTransitionAll = 45, ObjectScannerAll = 46, Everything = 47, ObjectRemovedAbortMultipartUpload = 48, ObjectCreatedCreateMultipartUpload = 49, ObjectRemovedDeleteObjects = 50, KmsKeyCreated = 51, KmsKeyRotated = 52, KmsKeyEnabled = 53, KmsKeyDisabled = 54, KmsKeyDeletionScheduled = 55, KmsKeyDeletionCancelled = 56, KmsKeyDeleted = 57, KmsKeyAccessed = 58, KmsServiceConfigured = 59, KmsServiceStarted = 60, KmsServiceStopped = 61, IamIdentityCredentialChanged = 62, IamIdentityAuthChallenge = 63,
}
Expand description

Represents the type of event that occurs on the object. Based on AWS S3 event type and includes RustFS extension.

Variants§

§

ObjectAccessedGet = 1

§

ObjectAccessedGetRetention = 2

§

ObjectAccessedGetLegalHold = 3

§

ObjectAccessedHead = 4

§

ObjectAccessedAttributes = 5

§

ObjectCreatedCompleteMultipartUpload = 6

§

ObjectCreatedCopy = 7

§

ObjectCreatedPost = 8

§

ObjectCreatedPut = 9

§

ObjectCreatedPutRetention = 10

§

ObjectCreatedPutLegalHold = 11

§

ObjectTaggingPut = 12

§

ObjectTaggingDelete = 13

§

ObjectRemovedDelete = 14

§

ObjectRemovedDeleteMarkerCreated = 15

§

ObjectRemovedDeleteAllVersions = 16

§

ObjectRemovedNoOP = 17

§

BucketCreated = 18

§

BucketRemoved = 19

§

ObjectReplicationFailed = 20

§

ObjectReplicationComplete = 21

§

ObjectReplicationMissedThreshold = 22

§

ObjectReplicationReplicatedAfterThreshold = 23

§

ObjectReplicationNotTracked = 24

§

ObjectRestorePost = 25

§

ObjectRestoreCompleted = 26

§

ObjectTransitionFailed = 27

§

ObjectTransitionComplete = 28

§

ScannerManyVersions = 29

§

ScannerLargeVersions = 30

§

ScannerBigPrefix = 31

§

LifecycleDelMarkerExpirationDelete = 32

§

ObjectAclPut = 33

§

LifecycleExpirationDelete = 34

§

LifecycleExpirationDeleteMarkerCreated = 35

§

LifecycleTransition = 36

§

IntelligentTiering = 37

§

ObjectAccessedAll = 38

§

ObjectCreatedAll = 39

§

ObjectRemovedAll = 40

§

ObjectReplicationAll = 41

§

ObjectRestoreAll = 42

§

ObjectTaggingAll = 43

§

LifecycleExpirationAll = 44

§

ObjectTransitionAll = 45

§

ObjectScannerAll = 46

§

Everything = 47

§

ObjectRemovedAbortMultipartUpload = 48

§

ObjectCreatedCreateMultipartUpload = 49

§

ObjectRemovedDeleteObjects = 50

§

KmsKeyCreated = 51

§

KmsKeyRotated = 52

§

KmsKeyEnabled = 53

§

KmsKeyDisabled = 54

§

KmsKeyDeletionScheduled = 55

§

KmsKeyDeletionCancelled = 56

§

KmsKeyDeleted = 57

§

KmsKeyAccessed = 58

§

KmsServiceConfigured = 59

§

KmsServiceStarted = 60

§

KmsServiceStopped = 61

§

IamIdentityCredentialChanged = 62

§

IamIdentityAuthChallenge = 63

Implementations§

Source§

impl EventName

Source

pub fn parse(s: &str) -> Result<EventName, ParseEventNameError>

The parsed string is EventName.

Source

pub fn try_from_event_str(s: &str) -> Result<EventName, ParseEventNameError>

Parses an event string into an EventName with explicit error handling.

Source

pub fn as_str(&self) -> &'static str

Returns a string representation of the event type.

Source

pub fn expand(&self) -> Vec<EventName>

Returns the extended value of the abbreviation event type.

Source

pub fn mask(&self) -> u64

Returns the mask of type. The compound “All” type will be expanded.

§Bit budget

A leaf event’s mask is 1 << (discriminant - 1), so the enum can hold at most 64 variants in total — compound “All” variants included, because they consume discriminants even though they own no bit of their own and so push every later leaf further up the range.

The last variant is currently KmsServiceStopped at discriminant LAST_EVENT_NAME_VALUE, leaving 64 - LAST_EVENT_NAME_VALUE free slots. Before adding an event, check that number; if the budget is gone, widen the mask beyond u64 rather than reusing a bit.

Three guards back this up: the const assertion next to LAST_EVENT_NAME_VALUE fails the build once that discriminant passes 64; test_event_name_discriminants_are_dense_and_fully_listed fails if the anchor is left stale or a variant goes unlisted; and test_every_event_mask_is_nonzero_and_leaf_bits_are_unique fails on the bit collision a wrapped shift produces in release builds.

Source

pub fn is_removed(&self) -> bool

Returns true for every object-removal event variant.

Covers all ObjectRemoved* leaf events, including the internal (metrics-only) ones, so callers can categorize removals without enumerating each variant by hand.

Source

pub fn is_kms(&self) -> bool

Returns true for KMS management-plane events.

These are audit-only: they are never emitted through the bucket notification pipeline, and no s3: event selector expands to them.

Source

pub fn is_iam(&self) -> bool

Whether this is an IAM identity management-plane event.

Mirrors Self::is_kms: these reach the audit sink only, so nothing in the bucket notification path should ever select them.

Trait Implementations§

Source§

impl Clone for EventName

Source§

fn clone(&self) -> EventName

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for EventName

Source§

impl Debug for EventName

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for EventName

Source§

fn default() -> EventName

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for EventName

Source§

fn deserialize<D>( deserializer: D, ) -> Result<EventName, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for EventName

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Eq for EventName

Source§

impl From<&str> for EventName

Convert to EventName according to string

Source§

fn from(event_str: &str) -> EventName

Converts to this type from the input type.
Source§

impl Hash for EventName

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for EventName

Source§

fn eq(&self, other: &EventName) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for EventName

Source§

fn serialize<S>( &self, serializer: S, ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for EventName

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> AsOut<T> for T
where T: Copy,

Source§

fn as_out(&mut self) -> Out<'_, T>

Returns an out reference to self.
Source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

Source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

Source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

Source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> CompatExt for T

Source§

fn compat(self) -> Compat<T>
where T: Sized,

Applies the Compat adapter by value. Read more
Source§

fn compat_ref(&self) -> Compat<&T>

Applies the Compat adapter by shared reference. Read more
Source§

fn compat_mut(&mut self) -> Compat<&mut T>

Applies the Compat adapter by mutable reference. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromExt for T

Source§

fn from_<T>(t: T) -> Self
where Self: From<T>,

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> IntoExt for T

Source§

fn into_<T>(self) -> T
where Self: Into<T>,

Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<L> LayerExt<L> for L

Source§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in Layered.
Source§

impl<T> PluginEvent for T
where T: Send + Sync + Clone + Serialize + DeserializeOwned + 'static,

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T> TryFromExt for T

Source§

fn try_from_<T>(t: T) -> Result<Self, Self::Error>
where Self: TryFrom<T>,

Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> TryIntoExt for T

Source§

fn try_into_<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more