Struct canadensis::ServiceToken
source · pub struct ServiceToken<T>(/* private fields */);
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§
source§impl<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§
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