Struct mpl_core::ExternalRegistryRecordSafe
source · pub struct ExternalRegistryRecordSafe {
pub plugin_type: u8,
pub authority: PluginAuthority,
pub lifecycle_checks: Option<Vec<(u8, ExternalCheckResult)>>,
pub offset: u64,
pub data_offset: Option<u64>,
pub data_len: Option<u64>,
}
Expand description
ExternalPluginAdapter Registry record that can be used when the plugin type is not known (i.e. a ExternalPluginAdapterType
that
is too new for this client to know about).
Fields§
§plugin_type: u8
§lifecycle_checks: Option<Vec<(u8, ExternalCheckResult)>>
§offset: u64
§data_offset: Option<u64>
§data_len: Option<u64>
Implementations§
source§impl ExternalRegistryRecordSafe
impl ExternalRegistryRecordSafe
sourcepub fn compare_offsets(
a: &ExternalRegistryRecordSafe,
b: &ExternalRegistryRecordSafe,
) -> Ordering
pub fn compare_offsets( a: &ExternalRegistryRecordSafe, b: &ExternalRegistryRecordSafe, ) -> Ordering
Associated function for sorting RegistryRecordIndexable
by offset.
Auto Trait Implementations§
impl Freeze for ExternalRegistryRecordSafe
impl RefUnwindSafe for ExternalRegistryRecordSafe
impl Send for ExternalRegistryRecordSafe
impl Sync for ExternalRegistryRecordSafe
impl Unpin for ExternalRegistryRecordSafe
impl UnwindSafe for ExternalRegistryRecordSafe
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> 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