pub struct ProvidedRef<P>where
P: Port + 'static,{ /* private fields */ }Expand description
A reference to a provided port
Can be connected to a RequiredPort.
Implementations§
Source§impl<P> ProvidedRef<P>where
P: Port + 'static,
impl<P> ProvidedRef<P>where
P: Port + 'static,
Sourcepub fn owned_by_component_with_id(&self, component_id: Uuid) -> OwnershipResult
pub fn owned_by_component_with_id(&self, component_id: Uuid) -> OwnershipResult
Checks if the component that owns this port has id == component_id
Returns OwnershipResult::Owned if the above statement is true,
and OwnershipResult::NotOwned, if it is false.
Also returns OwnershipResult::Deallocated if the component was already deallocated.
Trait Implementations§
Source§impl<P> Clone for ProvidedRef<P>where
P: Port + 'static,
impl<P> Clone for ProvidedRef<P>where
P: Port + 'static,
Source§fn clone(&self) -> ProvidedRef<P>
fn clone(&self) -> ProvidedRef<P>
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<P> PartialEq for ProvidedRef<P>where
P: Port + 'static,
impl<P> PartialEq for ProvidedRef<P>where
P: Port + 'static,
Source§fn eq(&self, other: &ProvidedRef<P>) -> bool
fn eq(&self, other: &ProvidedRef<P>) -> bool
Tests for
self and other values to be equal, and is used by ==.Auto Trait Implementations§
impl<P> Freeze for ProvidedRef<P>
impl<P> !RefUnwindSafe for ProvidedRef<P>
impl<P> Send for ProvidedRef<P>
impl<P> Sync for ProvidedRef<P>
impl<P> Unpin for ProvidedRef<P>
impl<P> UnsafeUnpin for ProvidedRef<P>
impl<P> !UnwindSafe for ProvidedRef<P>
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