pub struct TrustedWorkerRequest<P> { /* private fields */ }Expand description
Core-owned authority envelope received by a fixed trusted worker.
P is tool-specific data only. Authority fields are captured from the
supervisor’s minted ToolContext and cannot be supplied through
SandboxedWorkerChild::send_payload.
Implementations§
Source§impl<P> TrustedWorkerRequest<P>
impl<P> TrustedWorkerRequest<P>
Sourcepub fn into_parts(self) -> (String, Caveats, AxisEnforcement, P)
pub fn into_parts(self) -> (String, Caveats, AxisEnforcement, P)
Consume the envelope into its core-authenticated authority and payload.
Sourcepub fn has_supported_version(&self) -> bool
pub fn has_supported_version(&self) -> bool
Whether the envelope uses the protocol version understood by this core.
Trait Implementations§
Source§impl<P> Debug for TrustedWorkerRequest<P>where
P: Debug,
impl<P> Debug for TrustedWorkerRequest<P>where
P: Debug,
Source§impl<'de, P> Deserialize<'de> for TrustedWorkerRequest<P>where
P: Deserialize<'de>,
impl<'de, P> Deserialize<'de> for TrustedWorkerRequest<P>where
P: Deserialize<'de>,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TrustedWorkerRequest<P>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TrustedWorkerRequest<P>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<P> Serialize for TrustedWorkerRequest<P>where
P: Serialize,
impl<P> Serialize for TrustedWorkerRequest<P>where
P: Serialize,
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
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
Auto Trait Implementations§
impl<P> Freeze for TrustedWorkerRequest<P>where
P: Freeze,
impl<P> RefUnwindSafe for TrustedWorkerRequest<P>where
P: RefUnwindSafe,
impl<P> Send for TrustedWorkerRequest<P>where
P: Send,
impl<P> Sync for TrustedWorkerRequest<P>where
P: Sync,
impl<P> Unpin for TrustedWorkerRequest<P>where
P: Unpin,
impl<P> UnsafeUnpin for TrustedWorkerRequest<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for TrustedWorkerRequest<P>where
P: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<F, T> ConvertInto<T> for Fwhere
T: ConvertFrom<F>,
impl<F, T> ConvertInto<T> for Fwhere
T: ConvertFrom<F>,
Source§fn convert_into(self) -> T
fn convert_into(self) -> T
Infallibly converts a value of type
Self to a value of type T.Source§impl<F, T> ConvertTryFrom<F> for Twhere
F: ConvertInto<T>,
impl<F, T> ConvertTryFrom<F> for Twhere
F: ConvertInto<T>,
Source§impl<F, T> ConvertTryInto<T> for Fwhere
T: ConvertTryFrom<F>,
impl<F, T> ConvertTryInto<T> for Fwhere
T: ConvertTryFrom<F>,
Source§type Error = <T as ConvertTryFrom<F>>::Error
type Error = <T as ConvertTryFrom<F>>::Error
The type of an error that can occur during a conversion. Read more
Source§fn convert_try_into(self) -> Result<T, <T as ConvertTryFrom<F>>::Error>
fn convert_try_into(self) -> Result<T, <T as ConvertTryFrom<F>>::Error>
Fallibly converts a value of type
Self to a value of type T.impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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