pub struct Context {
pub bytes: Vec<u8>,
}Expand description
A component resolution context, used when resolving component URLs relative
to another component. The context is stored in a byte array that persists a
value used by the target Resolver to locate and resolve a component by
relative path (for example, by a subpackage name).
Fields§
§bytes: Vec<u8>Trait Implementations§
Source§impl CompatFrom<Context> for Context
impl CompatFrom<Context> for Context
Source§fn compat_from(value: Context) -> Context
fn compat_from(value: Context) -> Context
Converts
value into a value of this type.Source§impl<'a, ___E> Encode<Context<'static>, ___E> for &'a Contextwhere
___E: InternalHandleEncoder + Encoder + ?Sized,
impl<'a, ___E> Encode<Context<'static>, ___E> for &'a Contextwhere
___E: InternalHandleEncoder + Encoder + ?Sized,
Source§impl<___E> Encode<Context<'static>, ___E> for Contextwhere
___E: InternalHandleEncoder + Encoder + ?Sized,
impl<___E> Encode<Context<'static>, ___E> for Contextwhere
___E: InternalHandleEncoder + Encoder + ?Sized,
Source§impl<'de> FromWireRef<Context<'de>> for Context
impl<'de> FromWireRef<Context<'de>> for Context
Source§fn from_wire_ref(wire: &Context<'de>) -> Context
fn from_wire_ref(wire: &Context<'de>) -> Context
Converts the given
wire reference to this type.impl StructuralPartialEq for Context
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T, W> FromWireOption<WireBox<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<WireBox<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: WireBox<'_, W>) -> Option<T>
fn from_wire_option(wire: WireBox<'_, W>) -> Option<T>
Converts the given
wire to an option of this type.§impl<T, W> FromWireOptionRef<WireBox<'_, W>> for Twhere
T: FromWireRef<W>,
impl<T, W> FromWireOptionRef<WireBox<'_, W>> for Twhere
T: FromWireRef<W>,
§fn from_wire_option_ref(wire: &WireBox<'_, W>) -> Option<T>
fn from_wire_option_ref(wire: &WireBox<'_, W>) -> Option<T>
Converts the given
wire reference to an option of this type.§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]