pub(crate) struct Route {
channel: ChannelOwner,
request: Weak<Request>,
}Fields§
§channel: ChannelOwner§request: Weak<Request>Implementations§
Source§impl Route
impl Route
pub(crate) fn try_new( ctx: &Context, channel: ChannelOwner, ) -> Result<Self, Error>
pub(crate) fn request(&self) -> Weak<Request>
pub(crate) async fn abort( &self, err_code: Option<&str>, ) -> Result<(), Arc<Error>>
pub(crate) async fn fulfill( &self, args: FulfillArgs<'_, '_>, ) -> Result<(), Arc<Error>>
pub(crate) async fn continue( &self, args: ContinueArgs<'_, '_, '_>, ) -> Result<(), Arc<Error>>
Trait Implementations§
Source§impl RemoteObject for Route
impl RemoteObject for Route
fn channel(&self) -> &ChannelOwner
fn channel_mut(&mut self) -> &mut ChannelOwner
fn guid(&self) -> &S<Guid>
fn context(&self) -> Result<Arc<Mutex<Context>>, Error>
fn handle_event( &self, _ctx: &Context, _method: Str<Method>, _params: Map<String, Value>, ) -> Result<(), Error>
Auto Trait Implementations§
impl !Freeze for Route
impl RefUnwindSafe for Route
impl Send for Route
impl Sync for Route
impl Unpin for Route
impl UnwindSafe for Route
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