Struct canadensis::ServiceToken
source · [−]pub struct ServiceToken<T>(_, _);
Expand description
A token returned from Node::start_sending_requests
that can be used to a request a service using the associated service ID
The type parameter T
constrains the type of request sent.
Implementations
sourceimpl<T> ServiceToken<T>
impl<T> ServiceToken<T>
sourcepub fn service_id(&self) -> ServiceId
pub fn service_id(&self) -> ServiceId
returns the service ID that this token is used to send requests on
Auto Trait Implementations
impl<T> RefUnwindSafe for ServiceToken<T> where
T: RefUnwindSafe,
impl<T> Send for ServiceToken<T> where
T: Send,
impl<T> Sync for ServiceToken<T> where
T: Sync,
impl<T> Unpin for ServiceToken<T> where
T: Unpin,
impl<T> UnwindSafe for ServiceToken<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more