MCPcopy Create free account
hub / github.com/densumesh/broccoli / priority

Method priority

src/queue.rs:381–389  ·  view source on GitHub ↗
(mut self, priority: u8)

Source from the content-addressed store, hash-verified

379 /// Panics if the priority is not between 1 and 5.
380 #[must_use]
381 pub fn priority(mut self, priority: u8) -> Self {
382 assert!(
383 (1..=5).contains(&priority),
384 "Priority must be between 1 and 5"
385 );
386
387 self.priority = Some(priority);
388 self
389 }
390
391 /// Builds the `PublishOptions` with the configured values.
392 #[must_use]

Callers 2

test_message_priorityFunction · 0.80

Calls

no outgoing calls

Tested by 2

test_message_priorityFunction · 0.64