pub struct PositionSource {
source_type: PositionSourceTypeRef,
value: Box<dyn ErasedPositionSource>,
}Expand description
A registry-dispatched position source suitable for a particle network payload.
Fields§
§source_type: PositionSourceTypeRef§value: Box<dyn ErasedPositionSource>Implementations§
Source§impl PositionSource
impl PositionSource
pub fn new<T: PositionSourceCodec>( source_type: PositionSourceTypeRef, value: T, ) -> Self
pub const fn source_type(&self) -> PositionSourceTypeRef
pub fn downcast_ref<T: DowncastType>(&self) -> Option<&T>
Trait Implementations§
Source§impl Clone for PositionSource
impl Clone for PositionSource
Source§impl Debug for PositionSource
impl Debug for PositionSource
Source§impl PartialEq for PositionSource
impl PartialEq for PositionSource
Source§impl ReadFrom for PositionSource
impl ReadFrom for PositionSource
Auto Trait Implementations§
impl !RefUnwindSafe for PositionSource
impl !UnwindSafe for PositionSource
impl Freeze for PositionSource
impl Send for PositionSource
impl Sync for PositionSource
impl Unpin for PositionSource
impl UnsafeUnpin for PositionSource
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> 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 moreWraps this value in an
Arc<SyncMutex<>>