pub struct EventEndpoint { /* private fields */ }Expand description
An event endpoint.
Implementations§
Source§impl EventEndpoint
impl EventEndpoint
Sourcepub fn id(&self) -> &EndpointId
pub fn id(&self) -> &EndpointId
The endpoint’s identifier (or name).
Sourcepub fn direction(&self) -> EndpointDirection
pub fn direction(&self) -> EndpointDirection
The endpoint’s direction.
Sourcepub fn annotation(&self) -> &Annotation
pub fn annotation(&self) -> &Annotation
The endpoint’s annotation.
Sourcepub fn type_index(&self, ty: TypeRef<'_>) -> Option<EndpointTypeIndex>
pub fn type_index(&self, ty: TypeRef<'_>) -> Option<EndpointTypeIndex>
The index of the given type in the endpoint’s type list.
Sourcepub fn get_type(&self, index: EndpointTypeIndex) -> Option<&Type>
pub fn get_type(&self, index: EndpointTypeIndex) -> Option<&Type>
The type at the given index in the endpoint’s type list.
Trait Implementations§
Source§impl Clone for EventEndpoint
impl Clone for EventEndpoint
Source§fn clone(&self) -> EventEndpoint
fn clone(&self) -> EventEndpoint
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 EventEndpoint
impl Debug for EventEndpoint
Source§impl From<EventEndpoint> for EndpointInfo
impl From<EventEndpoint> for EndpointInfo
Source§fn from(endpoint: EventEndpoint) -> Self
fn from(endpoint: EventEndpoint) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EventEndpoint
impl RefUnwindSafe for EventEndpoint
impl Send for EventEndpoint
impl Sync for EventEndpoint
impl Unpin for EventEndpoint
impl UnwindSafe for EventEndpoint
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