pub struct Publisher { /* private fields */ }Expand description
One sans-I/O publication lifecycle.
Implementations§
Source§impl Publisher
impl Publisher
Sourcepub fn start(
config: Config,
start: Start,
) -> Result<(Self, Vec<Output>), StartError>
pub fn start( config: Config, start: Start, ) -> Result<(Self, Vec<Output>), StartError>
Start one initial publication.
Sourcepub fn entity_tag(&self) -> Option<&str>
pub fn entity_tag(&self) -> Option<&str>
Current entity tag after a successful operation.
Sourcepub fn granted_expiry(&self) -> Option<Duration>
pub fn granted_expiry(&self) -> Option<Duration>
Current granted expiry after a successful operation.
Sourcepub fn response(
&mut self,
response: Option<&Response>,
cnonce: &str,
) -> Vec<Output>
pub fn response( &mut self, response: Option<&Response>, cnonce: &str, ) -> Vec<Output>
Consume a final response; cnonce is fresh driver entropy for a possible digest retry.
Sourcepub fn modify(
&mut self,
body: Bytes,
content_type: String,
) -> Result<Vec<Output>, CommandError>
pub fn modify( &mut self, body: Bytes, content_type: String, ) -> Result<Vec<Output>, CommandError>
Replace event state conditionally.
Sourcepub fn remove(&mut self) -> Result<Vec<Output>, CommandError>
pub fn remove(&mut self) -> Result<Vec<Output>, CommandError>
Remove event state. At most one request is queued behind a live operation.
Sourcepub fn timer_fired(&mut self, timer: Timer, generation: u64) -> Vec<Output>
pub fn timer_fired(&mut self, timer: Timer, generation: u64) -> Vec<Output>
Fire one exact timer generation.
Sourcepub fn shutdown_deadline(&mut self) -> Vec<Output>
pub fn shutdown_deadline(&mut self) -> Vec<Output>
Force the bounded runtime shutdown deadline.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Publisher
impl RefUnwindSafe for Publisher
impl Send for Publisher
impl Sync for Publisher
impl Unpin for Publisher
impl UnsafeUnpin for Publisher
impl UnwindSafe for Publisher
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more