pub struct NativeEndpointSet { /* private fields */ }Expand description
The complete native endpoint set owned by one Plugin 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§impl Debug for NativeEndpointSet
impl Debug for NativeEndpointSet
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