pub enum JournalEventSource {
ControlPlane,
Worker {
fence: RunFence,
},
}Expand description
Trusted runtime origin assigned to one journal append.
ControlPlane is available only to the trusted API/scheduler transaction
path; it is not a privilege a remote or worker request can self-declare.
Worker writes carry the exact token that the store must fence atomically.
Variants§
ControlPlane
Trusted API, scheduler, recovery, or migration control path.
Worker
Physical worker attempt holding a run lease.
Implementations§
Source§impl JournalEventSource
impl JournalEventSource
Sourcepub const fn control_plane() -> Self
pub const fn control_plane() -> Self
Constructs a trusted control-plane source marker.
Sourcepub const fn worker_fence(&self) -> Option<&RunFence>
pub const fn worker_fence(&self) -> Option<&RunFence>
Returns the worker fence, if this event originates from an attempt.
Trait Implementations§
Source§impl Clone for JournalEventSource
impl Clone for JournalEventSource
Source§impl Debug for JournalEventSource
impl Debug for JournalEventSource
Source§impl<'de> Deserialize<'de> for JournalEventSource
impl<'de> Deserialize<'de> for JournalEventSource
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 Eq for JournalEventSource
Source§impl JsonSchema for JournalEventSource
impl JsonSchema for JournalEventSource
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for JournalEventSource
impl PartialEq for JournalEventSource
Source§impl Serialize for JournalEventSource
impl Serialize for JournalEventSource
impl StructuralPartialEq for JournalEventSource
Auto Trait Implementations§
impl Forget for JournalEventSource
impl Freeze for JournalEventSource
impl Move for JournalEventSource
impl RefUnwindSafe for JournalEventSource
impl Send for JournalEventSource
impl Sync for JournalEventSource
impl Unpin for JournalEventSource
impl UnsafeUnpin for JournalEventSource
impl UnwindSafe for JournalEventSource
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