pub struct Generation(/* private fields */);Expand description
One credential under one epoch: the scope of every name, key, and nonce.
Clones share the publisher claims, so a physical track is produced at most once per generation.
Implementations§
Source§impl Generation
impl Generation
Sourcepub fn credential(&self) -> &Credential
pub fn credential(&self) -> &Credential
The credential this generation derives from.
Sourcepub fn name(&self, semantic: &str) -> Result<Name>
pub fn name(&self, semantic: &str) -> Result<Name>
The opaque physical track name for a semantic track name.
§Errors
Error::Identity if semantic exceeds 65535 bytes.
Sourcepub fn produce(&self, track: Producer) -> Result<Producer>
pub fn produce(&self, track: Producer) -> Result<Producer>
Protect a net track whose name is a physical name, claiming it for this generation.
§Errors
Error::Identity if the track name is not a physical name, Error::Reuse if
this generation already produced it.
Sourcepub fn consume(&self, track: Subscriber) -> Result<Consumer>
pub fn consume(&self, track: Subscriber) -> Result<Consumer>
Open a net subscription whose track name is a physical name.
§Errors
Error::Identity if the track name is not a physical name.
Trait Implementations§
Source§impl Clone for Generation
impl Clone for Generation
Auto Trait Implementations§
impl Freeze for Generation
impl RefUnwindSafe for Generation
impl Send for Generation
impl Sync for Generation
impl Unpin for Generation
impl UnsafeUnpin for Generation
impl UnwindSafe for Generation
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