Struct cros_async::sync::waiter::WaiterAdapter
source · pub struct WaiterAdapter {
link_ops: <AtomicLink as DefaultLinkOps>::Ops,
pointer_ops: DefaultPointerOps<Arc<Waiter>>,
}
Fields§
§link_ops: <AtomicLink as DefaultLinkOps>::Ops
§pointer_ops: DefaultPointerOps<Arc<Waiter>>
Implementations§
Trait Implementations§
source§impl Adapter for WaiterAdapter
impl Adapter for WaiterAdapter
§type LinkOps = <AtomicLink as DefaultLinkOps>::Ops
type LinkOps = <AtomicLink as DefaultLinkOps>::Ops
Collection-specific link operations which allow an object to be inserted in
an intrusive collection.
§type PointerOps = DefaultPointerOps<Arc<Waiter>>
type PointerOps = DefaultPointerOps<Arc<Waiter>>
Collection-specific pointer conversions which allow an object to
be inserted in an intrusive collection.
source§unsafe fn get_value(
&self,
link: <Self::LinkOps as LinkOps>::LinkPtr
) -> *const <Self::PointerOps as PointerOps>::Value
unsafe fn get_value( &self, link: <Self::LinkOps as LinkOps>::LinkPtr ) -> *const <Self::PointerOps as PointerOps>::Value
Gets a reference to an object from a reference to a link in that object. Read more
source§unsafe fn get_link(
&self,
value: *const <Self::PointerOps as PointerOps>::Value
) -> <Self::LinkOps as LinkOps>::LinkPtr
unsafe fn get_link( &self, value: *const <Self::PointerOps as PointerOps>::Value ) -> <Self::LinkOps as LinkOps>::LinkPtr
Gets a reference to the link for the given object. Read more
source§fn link_ops_mut(&mut self) -> &mut Self::LinkOps
fn link_ops_mut(&mut self) -> &mut Self::LinkOps
Returns a reference to the mutable link operations.
source§fn pointer_ops(&self) -> &Self::PointerOps
fn pointer_ops(&self) -> &Self::PointerOps
Returns a reference to the pointer converter.
source§impl Clone for WaiterAdapter
impl Clone for WaiterAdapter
source§impl Default for WaiterAdapter
impl Default for WaiterAdapter
impl Copy for WaiterAdapter
impl Send for WaiterAdapter
impl Sync for WaiterAdapter
Auto Trait Implementations§
impl !RefUnwindSafe for WaiterAdapter
impl Unpin for WaiterAdapter
impl !UnwindSafe for WaiterAdapter
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