pub struct ChannelsEvent {
pub id: ChannelId,
pub scope_addr: OperatorAddr,
pub source: [PortId; 2],
pub target: [PortId; 2],
}Expand description
The creation of a channel between two operators
Fields§
§id: ChannelIdThe id of the channel
scope_addr: OperatorAddrThe address of the enclosing scope the channel is in
source: [PortId; 2]The operator index and output port of the channel’s source
target: [PortId; 2]The operator index and input port of the channel’s target
Implementations§
Source§impl ChannelsEvent
impl ChannelsEvent
Sourcepub const fn new(
id: ChannelId,
scope_addr: OperatorAddr,
source: (PortId, PortId),
target: (PortId, PortId),
) -> Self
pub const fn new( id: ChannelId, scope_addr: OperatorAddr, source: (PortId, PortId), target: (PortId, PortId), ) -> Self
Create a new ChannelsEvent
Trait Implementations§
Source§impl Archive for ChannelsEvent
impl Archive for ChannelsEvent
Source§type Archived = ArchivedChannelsEvent
type Archived = ArchivedChannelsEvent
The archived representation of this type. Read more
Source§type Resolver = ChannelsEventResolver
type Resolver = ChannelsEventResolver
The resolver for this type. It must contain all the additional information from serializing
needed to make the archived type from the normal type.
Source§impl Clone for ChannelsEvent
impl Clone for ChannelsEvent
Source§fn clone(&self) -> ChannelsEvent
fn clone(&self) -> ChannelsEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChannelsEvent
impl Debug for ChannelsEvent
Source§impl<__D: Fallible + ?Sized> Deserialize<ChannelsEvent, __D> for Archived<ChannelsEvent>where
ChannelId: Archive,
Archived<ChannelId>: Deserialize<ChannelId, __D>,
OperatorAddr: Archive,
Archived<OperatorAddr>: Deserialize<OperatorAddr, __D>,
[PortId; 2]: Archive,
Archived<[PortId; 2]>: Deserialize<[PortId; 2], __D>,
impl<__D: Fallible + ?Sized> Deserialize<ChannelsEvent, __D> for Archived<ChannelsEvent>where
ChannelId: Archive,
Archived<ChannelId>: Deserialize<ChannelId, __D>,
OperatorAddr: Archive,
Archived<OperatorAddr>: Deserialize<OperatorAddr, __D>,
[PortId; 2]: Archive,
Archived<[PortId; 2]>: Deserialize<[PortId; 2], __D>,
Source§fn deserialize(
&self,
deserializer: &mut __D,
) -> Result<ChannelsEvent, __D::Error>
fn deserialize( &self, deserializer: &mut __D, ) -> Result<ChannelsEvent, __D::Error>
Deserializes using the given deserializer
Source§impl From<ChannelsEvent> for ChannelsEvent
impl From<ChannelsEvent> for ChannelsEvent
Source§fn from(event: TimelyChannelsEvent) -> Self
fn from(event: TimelyChannelsEvent) -> Self
Converts to this type from the input type.
Source§impl From<ChannelsEvent> for TimelyEvent
impl From<ChannelsEvent> for TimelyEvent
Source§fn from(v: ChannelsEvent) -> Self
fn from(v: ChannelsEvent) -> Self
Converts to this type from the input type.
Source§impl Hash for ChannelsEvent
impl Hash for ChannelsEvent
Source§impl Ord for ChannelsEvent
impl Ord for ChannelsEvent
Source§fn cmp(&self, other: &ChannelsEvent) -> Ordering
fn cmp(&self, other: &ChannelsEvent) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ChannelsEvent
impl PartialEq for ChannelsEvent
Source§impl PartialOrd for ChannelsEvent
impl PartialOrd for ChannelsEvent
impl Eq for ChannelsEvent
impl StructuralPartialEq for ChannelsEvent
Auto Trait Implementations§
impl Freeze for ChannelsEvent
impl RefUnwindSafe for ChannelsEvent
impl Send for ChannelsEvent
impl Sync for ChannelsEvent
impl Unpin for ChannelsEvent
impl UnwindSafe for ChannelsEvent
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Source§impl<T> ArchiveUnsized for Twhere
T: Archive,
impl<T> ArchiveUnsized for Twhere
T: Archive,
Source§type Archived = <T as Archive>::Archived
type Archived = <T as Archive>::Archived
The archived counterpart of this type. Unlike
Archive, it may be unsized. Read moreSource§type MetadataResolver = ()
type MetadataResolver = ()
The resolver for the metadata of this type. Read more
Source§unsafe fn resolve_metadata(
&self,
_: usize,
_: <T as ArchiveUnsized>::MetadataResolver,
_: *mut <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata,
)
unsafe fn resolve_metadata( &self, _: usize, _: <T as ArchiveUnsized>::MetadataResolver, _: *mut <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata, )
Creates the archived version of the metadata for this value at the given position and writes
it to the given output. Read more
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,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: *const T) -> Layout
fn layout_raw(_: *const T) -> Layout
Gets the layout of the type.