pub struct NativeEndpointSet { /* private fields */ }Expand description
The complete native endpoint set owned by one Module generation.
Implementations§
Source§impl NativeEndpointSet
impl NativeEndpointSet
Sourcepub fn new(
request: Vec<Rc<dyn NativeRequestEndpoint>>,
stream: Vec<Rc<dyn NativeStreamEndpoint>>,
event: Vec<Rc<dyn NativeEventEndpoint>>,
) -> Self
pub fn new( request: Vec<Rc<dyn NativeRequestEndpoint>>, stream: Vec<Rc<dyn NativeStreamEndpoint>>, event: Vec<Rc<dyn NativeEventEndpoint>>, ) -> Self
Creates an endpoint set containing every native interaction kind.
Sourcepub fn request(&self) -> &[Rc<dyn NativeRequestEndpoint>]
pub fn request(&self) -> &[Rc<dyn NativeRequestEndpoint>]
Returns the request endpoints in this generation.
Sourcepub fn stream(&self) -> &[Rc<dyn NativeStreamEndpoint>]
pub fn stream(&self) -> &[Rc<dyn NativeStreamEndpoint>]
Returns the stream endpoints in this generation.
Sourcepub fn event(&self) -> &[Rc<dyn NativeEventEndpoint>]
pub fn event(&self) -> &[Rc<dyn NativeEventEndpoint>]
Returns the Event endpoints in this generation.
Trait Implementations§
Source§impl Clone for NativeEndpointSet
impl Clone for NativeEndpointSet
Source§fn clone(&self) -> NativeEndpointSet
fn clone(&self) -> NativeEndpointSet
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 Debug for NativeEndpointSet
impl Debug for NativeEndpointSet
Source§impl Default for NativeEndpointSet
impl Default for NativeEndpointSet
Source§fn default() -> NativeEndpointSet
fn default() -> NativeEndpointSet
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for NativeEndpointSet
impl !Send for NativeEndpointSet
impl !Sync for NativeEndpointSet
impl !UnwindSafe for NativeEndpointSet
impl Freeze for NativeEndpointSet
impl Unpin for NativeEndpointSet
impl UnsafeUnpin for NativeEndpointSet
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