Skip to main content

CheckReporter

Struct CheckReporter 

Source
pub struct CheckReporter {
    pub channel: String,
    pub name: String,
    pub target_ref: Option<String>,
    pub seal: Option<Seal>,
}
Expand description

How the queue writes what CI found into the log (D49).

Off by default, and opt-in for the same reason MergeQueue::set_journal is: the queue is a library, the identity under which a check is reported belongs to whoever is running it, and inventing a channel name here would put an unattributable reporter in a signed, ordered record.

Fields§

§channel: String

The channel the check is reported under.

§name: String

The check’s name, e.g. "ci/build".

§target_ref: Option<String>

The ref these subjects are proposed to land on, in the view’s <repo>:<refname> form.

None leaves the check node-wide. A commit id names no repository, so an unbound check is readable only by node-wide readers – correct, and useless to the repository it is about.

§seal: Option<Seal>

How a report is turned into what this log will accept (D68).

None submits the op’s own bytes unsigned, which is right for a queue whose sequencer admits them. A daemon’s policy does not: it demands a signature, and with --require-scope a scope naming its log and a recent head. Both live in the payload, so this seals the whole submission rather than only signing it – a signer alone would sign bytes the policy then rejected for their scope, and the refusal would read as a key problem.

Trait Implementations§

Source§

impl Clone for CheckReporter

Source§

fn clone(&self) -> CheckReporter

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CheckReporter

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Hand-written because Seal is a function and has no useful debug form. It is reported as present or absent, which is the part a reader chasing a refused report needs.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.