Enum AssemblyLoadMethod
pub enum AssemblyLoadMethod {
LoadBytes,
LoadBytesWithSymbols,
LoadFrom,
LoadFile,
LoadByName,
LoadByString,
AppDomainLoad,
Unknown,
}Expand description
The method used to load an assembly dynamically.
Different loading methods have different semantics in .NET regarding assembly resolution, binding context, and security. This enum tracks which specific API was used.
Variants§
LoadBytes
Assembly.Load(byte[]) - Load from raw bytes.
The most common method for loading packed/encrypted assemblies. The assembly is loaded into the default load context.
LoadBytesWithSymbols
Assembly.Load(byte[], byte[]) - Load from bytes with debug symbols.
Includes a PDB symbol file for debugging. The second byte array contains the debug symbols.
LoadFrom
Assembly.LoadFrom(string) - Load from a file path.
Loads the assembly from the specified file path into the LoadFrom context.
LoadFile
Assembly.LoadFile(string) - Load from a file path (no context).
Loads the assembly from the specified file path without adding it to any load context.
LoadByName
Assembly.Load(AssemblyName) - Load by assembly name.
Loads the assembly by searching for it using the standard assembly resolution process.
LoadByString
Assembly.Load(string) - Load by display name string.
Parses the string as an assembly display name and loads it using standard resolution.
AppDomainLoad
AppDomain.Load - Load into an AppDomain.
Assembly was loaded via AppDomain.Load or similar AppDomain loading methods.
Unknown
Unknown or unrecognized loading method.
Used when the loading method could not be determined.
Trait Implementations§
§impl Clone for AssemblyLoadMethod
impl Clone for AssemblyLoadMethod
§fn clone(&self) -> AssemblyLoadMethod
fn clone(&self) -> AssemblyLoadMethod
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for AssemblyLoadMethod
impl Debug for AssemblyLoadMethod
impl Eq for AssemblyLoadMethod
§impl PartialEq for AssemblyLoadMethod
impl PartialEq for AssemblyLoadMethod
impl StructuralPartialEq for AssemblyLoadMethod
Auto Trait Implementations§
impl Freeze for AssemblyLoadMethod
impl RefUnwindSafe for AssemblyLoadMethod
impl Send for AssemblyLoadMethod
impl Sync for AssemblyLoadMethod
impl Unpin for AssemblyLoadMethod
impl UnsafeUnpin for AssemblyLoadMethod
impl UnwindSafe for AssemblyLoadMethod
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for T
impl<T> Downcast for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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>
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>
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 moreSource§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.