pub struct Endpoint {
pub class: &'static str,
pub service: Option<&'static Service>,
pub client: Option<&'static Service>,
}Expand description
What the macro renders: a class name and the traits filling each half of the connection.
Fields§
§class: &'static strThe name of the generated Javascript class.
service: Option<&'static Service>The trait this endpoint implements, if any.
client: Option<&'static Service>The trait this endpoint calls, if any.
Auto Trait Implementations§
impl Freeze for Endpoint
impl RefUnwindSafe for Endpoint
impl Send for Endpoint
impl Sync for Endpoint
impl Unpin for Endpoint
impl UnsafeUnpin for Endpoint
impl UnwindSafe for Endpoint
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