#[repr(u8)]pub enum HandleContent {
All = 0,
TouchedOnly = 1,
None = 2,
}Expand description
Logging policy for a CuHandle’s payload content.
Set by the source that produces the handle (typically via this enum’s slot under
NodeLogging) and propagated through clones. The unified-log encoder reads this to
decide whether to write the payload bytes or just a metadata-only record for the
frame. See cu29_runtime::pool::CuHandle for the runtime side.
Defined here (instead of in pool.rs) so the type is reachable from both the
library and the cu29-rendercfg binary, which compiles config.rs standalone.
Variants§
All = 0
Always log the full payload (current default).
TouchedOnly = 1
Log the payload only if a downstream consumer called CuHandle::mark_touched.
None = 2
Never log the payload; keep only the surrounding metadata (timestamps, status).
Implementations§
Source§impl HandleContent
impl HandleContent
Sourcepub fn from_u8(v: u8) -> HandleContent
pub fn from_u8(v: u8) -> HandleContent
Reconstruct a HandleContent from its AtomicU8 representation. Unknown
values fall back to All so corrupt state never silently drops payload bytes.
Trait Implementations§
Source§impl Clone for HandleContent
impl Clone for HandleContent
Source§fn clone(&self) -> HandleContent
fn clone(&self) -> HandleContent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for HandleContent
Source§impl Debug for HandleContent
impl Debug for HandleContent
Source§impl Default for HandleContent
impl Default for HandleContent
Source§fn default() -> HandleContent
fn default() -> HandleContent
Source§impl<'de> Deserialize<'de> for HandleContent
impl<'de> Deserialize<'de> for HandleContent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<HandleContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<HandleContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for HandleContent
Source§impl PartialEq for HandleContent
impl PartialEq for HandleContent
Source§impl Serialize for HandleContent
impl Serialize for HandleContent
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,
impl StructuralPartialEq for HandleContent
Auto Trait Implementations§
impl Freeze for HandleContent
impl RefUnwindSafe for HandleContent
impl Send for HandleContent
impl Sync for HandleContent
impl Unpin for HandleContent
impl UnsafeUnpin for HandleContent
impl UnwindSafe for HandleContent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
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 more