Skip to main content

ParsedWorkerInvocation

Struct ParsedWorkerInvocation 

Source
pub struct ParsedWorkerInvocation { /* private fields */ }

Implementations§

Source§

impl ParsedWorkerInvocation

Source

pub fn request_id(&self) -> &str

Source

pub fn runtime_generation_id(&self) -> &str

Source

pub fn plugin_instance_id(&self) -> IpcResult<&str>

Source

pub fn session_scope(&self) -> IpcResult<Option<SessionScope>>

Returns the exact session scope when the invocation is session-bound. Background invocations may omit both session-specific hashes. A partial session identity is rejected instead of being treated as unscoped.

Source

pub fn context(&self) -> IpcResult<WorkerInvocationContext>

Source

pub fn identity(&self) -> IpcResult<WorkerInvocationIdentity>

Source

pub fn validate_worker_contract(&self) -> IpcResult<()>

Source

pub fn worker_request_json_v2(&self) -> IpcResult<String>

Source

pub fn memory_limit_bytes(&self) -> IpcResult<usize>

Source

pub fn replay_key(&self) -> IpcResult<WorkerLeaseReplayKey>

Source

pub fn storage_handle_grant(&self, store_id: &str) -> IpcResult<String>

Source

pub fn validate_storage_broker_access( &self, store_id: &str, operation: &str, ) -> IpcResult<()>

Source

pub fn storage_broker_scope(&self, store_id: &str) -> IpcResult<String>

Source

pub fn validate_network_broker_access( &self, connector_id: &str, transport: &str, operation: &str, http_method: &str, ) -> IpcResult<()>

Source

pub fn network_broker_scope( &self, connector_id: &str, transport: &str, ) -> IpcResult<String>

Source§

impl ParsedWorkerInvocation

Source§

impl ParsedWorkerInvocation

Source

pub fn validate_runtime_lease(&self, now_unix_ms: i64) -> IpcResult<()>

Source§

impl ParsedWorkerInvocation

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> 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<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
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.