Trait MaybeOwned

Source
pub unsafe trait MaybeOwned: 'static { }
Expand description

A trait for determining whether the buffer is owned or borrowed.

When the completion-based feature is enabled, this trait requires a 'static lifetime bound to ensure buffers can be safely used in completion-based I/O.

§Safety

Do not implement this trait manually. It is automatically implemented for all types with a 'static lifetime.

Implementors§

Source§

impl<T: 'static> MaybeOwned for T