Struct canadensis::PublishToken
source · [−]pub struct PublishToken<T>(_, _);
Expand description
A token returned from Node::start_publishing
that can be
used to a publish a transfer using the associated subject ID
The type parameter T
constrains the type of message sent.
Implementations
sourceimpl<T> PublishToken<T>
impl<T> PublishToken<T>
sourcepub fn subject_id(&self) -> SubjectId
pub fn subject_id(&self) -> SubjectId
Returns the subject ID that this token is used to publish on
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for PublishToken<T> where
T: RefUnwindSafe,
impl<T> Send for PublishToken<T> where
T: Send,
impl<T> Sync for PublishToken<T> where
T: Sync,
impl<T> Unpin for PublishToken<T> where
T: Unpin,
impl<T> UnwindSafe for PublishToken<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