pub struct IsSubscription { /* private fields */ }
Expand description
A marker type to indicate that the request is a subscription for the RpcServiceT::call
method.
Implementations§
Source§impl IsSubscription
impl IsSubscription
Sourcepub fn new(
sub_id: Id<'static>,
unsub_id: Id<'static>,
unsub_method: String,
) -> Self
pub fn new( sub_id: Id<'static>, unsub_id: Id<'static>, unsub_method: String, ) -> Self
Create a new IsSubscription
instance.
Sourcepub fn sub_req_id(&self) -> Id<'static>
pub fn sub_req_id(&self) -> Id<'static>
Get the request id of the subscription calls.
Sourcepub fn unsub_req_id(&self) -> Id<'static>
pub fn unsub_req_id(&self) -> Id<'static>
Get the request id of the unsubscription call.
Sourcepub fn unsubscribe_method(&self) -> &str
pub fn unsubscribe_method(&self) -> &str
Get the unsubscription method name.
Trait Implementations§
Source§impl Clone for IsSubscription
impl Clone for IsSubscription
Source§fn clone(&self) -> IsSubscription
fn clone(&self) -> IsSubscription
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 moreAuto Trait Implementations§
impl Freeze for IsSubscription
impl RefUnwindSafe for IsSubscription
impl Send for IsSubscription
impl Sync for IsSubscription
impl Unpin for IsSubscription
impl UnwindSafe for IsSubscription
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