Skip to main content

Sent

Struct Sent 

Source
pub struct Sent {
    pub published: Vec<Published>,
    pub threads: Option<Vec<RemoteThread>>,
    pub failed: Option<ForgeError>,
}
Expand description

What an adapter’s publish brought back.

Err from Forge::publish means nothing left the machine. Once anything has, the adapter returns Ok with what it knows: the comments it can name, the threads if it fetched them on the way, and the error that stopped it, so the caller records what landed before it says what failed. A publish that lost track of its own comments would send them again.

Fields§

§published: Vec<Published>§threads: Option<Vec<RemoteThread>>

The threads, when the adapter had to fetch them anyway.

§failed: Option<ForgeError>

What stopped the adapter after something had already gone up.

Trait Implementations§

Source§

impl Debug for Sent

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Default for Sent

Source§

fn default() -> Sent

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl !RefUnwindSafe for Sent

§

impl !UnwindSafe for Sent

§

impl Freeze for Sent

§

impl Send for Sent

§

impl Sync for Sent

§

impl Unpin for Sent

§

impl UnsafeUnpin for Sent

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> 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> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.