pub struct VariableLengthFilterConfigData {
pub name: String,
pub value: Option<NonNull<[u8]>>,
pub size: usize,
pub default_value: Vec<u8>,
}Available on crate feature
filter only.Expand description
可変長の汎用データ。
FilterConfigDataと違い、サイズを変更することができます。
必要に応じて、bytemuckなどのクレートを使用して型変換してください。
Fields§
§name: String設定名。
value: Option<NonNull<[u8]>>設定値。
size: usizeデータのサイズ。
default_value: Vec<u8>デフォルト値。
Implementations§
Trait Implementations§
Source§impl Clone for VariableLengthFilterConfigData
impl Clone for VariableLengthFilterConfigData
Source§fn clone(&self) -> VariableLengthFilterConfigData
fn clone(&self) -> VariableLengthFilterConfigData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl From<VariableLengthFilterConfigData> for ErasedFilterConfigData
impl From<VariableLengthFilterConfigData> for ErasedFilterConfigData
Source§fn from(value: VariableLengthFilterConfigData) -> Self
fn from(value: VariableLengthFilterConfigData) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Send for VariableLengthFilterConfigData
impl !Sync for VariableLengthFilterConfigData
impl Freeze for VariableLengthFilterConfigData
impl RefUnwindSafe for VariableLengthFilterConfigData
impl Unpin for VariableLengthFilterConfigData
impl UnsafeUnpin for VariableLengthFilterConfigData
impl UnwindSafe for VariableLengthFilterConfigData
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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